GetDlgItem is a member of CWnd. Are you sure you're calling it from a non-static method of a class derived from CWnd?
If not, then you're calling the 2 parameter version of GetDlgItem, which takes...
A system-wide freeze, to me, really points to a driver problem - something that's running in kernel mode.. I don't know what a "CAC DPT4 card" is, but who wrote the driver for it?
I guess attaching...
This may seem like a really stupid question... but how do I create a help file for my app?
I've looked through MSDN, and there are lots of docs offering useful tips on how to organize your help,...
Actually, PreCreateWindow doesn't work so well, because if I increase the size, MFC starts putting these things off the MDI area, and the user has to move them completely back on (e.g. the bottom is...
I have lengthy action that has a progress dialog. The dialog itself initiates the action: it spawns a worker thread and communicates with it using events.
The compiler error you're getting means that the function where that code exists is not a method on a CWnd class. Are you sure you added your function it to the class definition?
Without posting...
The option to do so is not available in the properties for a static in VC++.
I have to manually edit the .rc file, and only *then* does the option appear.
I don't know how you're sizing it, but comboboxes are weird, in that the size you give them is the size of the box itself plus the dropdown height. So if they are sized only big enough for the box...
Well, I think you will see the values change all the time if you stepped through code. For example, the return value of a function is placed in the eax register. So it will change after every...
Hmm... but that value will change millions (billions?) of times a second just executing regular code.
Maybe you're interested in if it changes at just one particular spot in the code?