Click here to Skip to main content
15,918,808 members

Comments by FatalCatharsis (Top 68 by date)

FatalCatharsis 29-Nov-11 17:42pm View    
alrighty then. good to know :P
FatalCatharsis 29-Nov-11 16:56pm View    
interesting. didn't think it would be that simple :\ . isn't that what the:

#ifndef BASE_H
#define BASE_H
...
#endif

does? Like, once it's included once then BASE_H is defined, and then it won't cycle through it again?
FatalCatharsis 29-Nov-11 13:32pm View    
it is because m_Map is defined statically. If that line is omitted, the static functions inside the class no longer have access to the m_Map member. So it's declared globally. I get undefined reference errors otherwise. I need only one single map object even though there is multiple derivedRegister objects. Defined statically, the map object is the same object for all instances of derivedRegister.
FatalCatharsis 20-Nov-11 13:19pm View    
Okay, i've just been frustrating over this all morning, and just now, after doing the same thing for like 12 compiles, it suddenly worked. I can't remember changing anything between these compiles. It just works. So now i'm just gonna go grab a coffee and some aspirin and get on with my day. Thanks for your assistance guys.
FatalCatharsis 20-Nov-11 12:42pm View    
okay, i found something new that i'm confused by. when i removed the WS_CHILD style and then made the parent parameter NULL, the window was created fine, off to the side of my main window. That's cool, but this needs to be a control, and needs to be a child window. Can you all think of any reason why it wouldn't be aloud to be parented by the main window?