|
I do not use Windows Forms. I am using Visual C++ 6.0. I can not find MakeTransparent().
Eilzabeth
|
|
|
|
|
...in the Dallas/Ft Worth area of Texas. It can be any type of training that deals with windows and C++ but I'm not sure where to look. After I pestered my boss about training (a rare thing where I work) he finially said "You find the training in the area and I'll send you!". So if anyone knows of any around D/FW, let me know,
Thanks,
Joe
|
|
|
|
|
Are you referring to windows programming or just Visual C++? In terms of windows programming, I highly recommend books and practice instead of "training."
Kuphryn
|
|
|
|
|
Probably windows programing, that's what I'm weakest at. Plus, work won't pay for books and practice, even if I'm doing it at work. Improving myself in order help the company is "not my job" and it has to have an immediate value-added componant to the project at hand. None of this silly long term benefit stuff! Plus, there is no "proof" I did it without a lousy piece of paper saying I did it at the end.
Besides, it would be approved time away from the building. With books, the boss (if he did approve it) would interrupt any time, just like if I have lunch at the building.
Thanks for the suggestion
Joe
|
|
|
|
|
One possible problem with "training" is that I believe it is way too short. On the other handle, learing windows programming using books and doing practices is extremely effective.
The key to learning windows programming is practice and to never give up. Good luck.
Kuphryn
|
|
|
|
|
I need to access the underlying display I/O at system level for implementing a Terminal Services like service (display output redirection). From what it looks like I have two options:
1. API hooking - slow, cumbersome, low-level, half-documented and error prone (not to mention unportable)
2. "Mirror" driver technique - fast, available but a bit hidden from public so to speak.
Which one to choose, and how to implement them ? Can any of you guys help me out ?
Are there any tutorials available on this ? I am already briefly familiar with what DDK says about this, and generally with the NT driver programming theory, although I was never even near all this stuff.
|
|
|
|
|
can anyone explain how to use this control? i've tried using the automation stuff on msdn, but i get assert errors - i'm not getting the right IDispatch or something. can you even do it this way? or is there a way to use automation to insert an excel sheet into the app? i'm using an mfc dialog. any help appreciated
|
|
|
|
|
Here is a *fun* problem:
How do you prototype a derived class?
To add some code to the situation:
This is what I want to do:
namespace ManagedConsoleXPControls
{
public __gc __abstract class ConsoleControlBase : public CollectionBase;
}
However, good 'ol VS 2003 gives me a nasty error:
c:\Projects\Windows Forms\Managed Console\MC - Console XP\MCXP-Prototypes.h(20): error C2143: syntax error : missing ',' before ';'
I'm quite certain that this error pertains to this single line in the code.
Does anyone have any bright ideas?
|
|
|
|
|
There is no such thing as a prototype, but there is a forward declaration, which basically tells the compiler "this symbol is the name of a class that I'll define later".
namespace blah
{
class ConsoleControlBase;
}
--Mike--
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--=
NO CARRIER
|
|
|
|
|
So be it, forward declaration.
Yet, I still need to declare the class as being derived from another class. This is necessary because I must call functions specific to its base class before I formally declare it.
|
|
|
|
|
The forward declaration should work! Why can't you just declare the class before those functions are called?
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
Hi,
I am trying to catch a user exception. The user presses two buttons. But the second button should only be pressed if the first one has else i should warn the user of an incorrect action.
any ideas>
kash
|
|
|
|
|
Hmmmm, I wouldn't consider that an "exception" per se...
I see an "exception" as an error that occurs programatically, like a FileNotFound or the like.
This is more of a UI issue.
Anyway, I would simply set a bool value somewhere in your code, inside the Form class if you are using Windows Forms for example. Upon program initialization, set the bool to false. Everytime the user presses the first button, set the bool to true. When the user presses the second button, check whether the bool is true. If it isnt, show the user a MessageBox or echo the error somewhere where the user is gonna see it.
Hope this helps.
|
|
|
|
|
|
Kash wrote:
But the second button should only be pressed if the first one has
Then disable the second button until after the user pressed the first.
John
|
|
|
|
|
John D. has provided you with the correct solution. If a control is not supposed to be interacted with until a certain condition exists, then disable the control, period.
Don't clutter your code with variables that just makes maintenance harder. It sounds great now, but you must always consider the code in the future.
|
|
|
|
|
Suppose i want users to see all the code i've written for my project. I want to show them the dialogs, but i dont know what file they're stored in.
so, in addition to all the .h and .cpp files, what else should i include for users to download?
*.*
cin >> knowledge;
|
|
|
|
|
.rc and resource.h for dialogs
and probably the contents of the res folder (icons, bitmaps etc)
Michael
'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
|
|
|
|
|
".RC" has the dialog info.
Why don't you just ship the whole project without the debug and release folders?
|
|
|
|
|
well, i really want to show people specific things, not show them everything. i really want to let users see certain dialog boxes, and certain source code files, but i guess i can't if all teh dialog boxes are stored in one rc file.
*.*
cin >> knowledge;
|
|
|
|
|
i don't know if you're aware of this, but the users can see all your dialogs and resources anyway as long as they have your .exe file. All you have to do is open it as a resource in visualC++6.
|
|
|
|
|
... and that ladies and gentlemen, is one to grow on
|
|
|
|
|
hi,
anyone know the how to stop the JIT debugger for windows app.?
i have a program work fine in a pc w/o VS installed...
but in a VS installed pc, it crashed and popup a message box said that access not read or write memory..
any help?
thanks,
jim
|
|
|
|
|
I wouldn't stop the JIT debugger. Fix your program instead. The debugger will only show a message box if there's an error in the program. The fact that it doesn't get shown on a PC without VS installed doesn't mean that there is no error. It just means that it's an undetected error.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I agree with Ryan. Just because it does not show the error does not mean it is working properly. Debug the application to figure out what is causing the problem.
John
|
|
|
|