Most MFC functions call their parent's functions, like for instance:
void CMyDoc::DeleteContents()
{
...do stuff
CDocument::DeleteContents();
}
How do they do this? They aren't calling member functions of an *object*, they are calling member functions of a *class*.
And those member...
Sometimes when there is a compile error the output window shows the error, but when I correct it, the build won't *start again* !
If I try to quit VC, it says "there is a build in progress, stop it first with Stop Build". Only Stop Build doesn't do anything. So my only recourse is to...
After a recent XP install, Windows Media Player doesn't play movies. It used to work fine just days ago, now it suddenly just plays the music, not the video.
I just installed XP on a clean new system. I don't have automatic updates turned on (I checked it off), I don't have anything on this system, not even Office.
When I dial up, the connection status shows a constant upload - no programs are running, the task list is empty, and still it keeps...
I'm running multiple instances of the same project; I compile different projects, the instance handle is ALWAYS the same = 0x00400000.
Spy++ shows it too.
What's going on?
Say we have a template function that returns the maximum of two values.
template <class T> T& max (T param1, T param2) {...}
It's logical that it would compile into *two completely* separate functions if it's called once with integers, and once with, say, strings.
Then, if this template is...
Hi,
I'm writing a program that updates the client area (fills it with a new color) at each WM_MOUSEMOVE.
I use CreateSolidBrush, fill the area, then duly DeleteObject the brush, but still it doesn't work - after a few hundred mousemoves the brush turns white and stays white -- my guess GDI...
Hi,
I'm doing this according to Straustrup but VC gives the error:
unresolved external symbol "public: static int something::N"
What's going on?
struct something {
int x;
static int N;
};
void main()
{
something::N = 0;
}
Hi,
I'm trying to understand this code. This is the message loop in WinMain, it keeps asking for messages.
.WHILE TRUE
invoke GetMessage, ADDR msg,0,0,0
.BREAK .IF (!eax) ; break if no message
invoke TranslateMessage, ADDR msg
invoke DispatchMessage, ADDR msg
.ENDW
I have a few...
Visual C++ 6.0 installed without the help. When I click on Help it says "A required component is missing." And I can't install it from the CD, it says it can't find MSDN.
How can I get MSDN?
I crashed the system and after reset Windows decided to 'restore' the registry to a previous version, which messed up everything.
I have this Network Neighborhood I can't get rid of, and the Volume control icon is gone from the tray.
Help?
My PC won't start with the power button. I have to unplug the power cord, wait for a couple of seconds (mandatory) and then plug it back in. That's the only way it will start.
It's a 4-year-old K6-II PC.
Input or similar experience appreciated!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.