Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issue with Classes

Status
Not open for further replies.

themavrik21

Programmer
Oct 27, 2002
2
0
0
US
I have a main class, CEngine, to control lots of annoying things to do in VC++ (creating windows, initializing directX, things like that) The problem is this: I have the constructor of the class calling a private function that creates a window, problem is: the window never shows up. If I cut and paste my window creating code from the function it's in to the WinMain function, it works fine. I'm really stumped with this one and if you need some more info let me know. Thanks in advance.
 
Well, maybe the constructor never gets called, because you don't have an instance of your class????
Or maybe you didn't call ShowWindow()???
A bit of code would be helpful here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top