Click here to Skip to main content
15,920,632 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPlease help me! Pin
phyton_lim11-Oct-06 0:35
phyton_lim11-Oct-06 0:35 
QuestionRe: Please help me! Pin
David Crow11-Oct-06 7:38
David Crow11-Oct-06 7:38 
AnswerRe: Please help me! Pin
phyton_lim11-Oct-06 14:49
phyton_lim11-Oct-06 14:49 
GeneralRe: Please help me! Pin
David Crow12-Oct-06 2:49
David Crow12-Oct-06 2:49 
QuestionRegisterClass Pin
Nishad S11-Oct-06 0:23
Nishad S11-Oct-06 0:23 
AnswerRe: RegisterClass Pin
Steen Krogsgaard11-Oct-06 1:28
Steen Krogsgaard11-Oct-06 1:28 
GeneralRe: RegisterClass Pin
Nishad S11-Oct-06 1:50
Nishad S11-Oct-06 1:50 
GeneralRe: RegisterClass Pin
Steen Krogsgaard11-Oct-06 1:57
Steen Krogsgaard11-Oct-06 1:57 
Well, even if there only exist one window of any given class in the entire universe, Windows still needs to know these things. And since there may exists hundreds of windows of the same class (a static text control is a good example) you may as well put these common things into a windows class instead of defining them for each instance of the class. It's analogous to defining the member functions of a C++ class each time you declare an instance - that would not be efficient either.

The bottom line is that your Windows program won't work if you don't register your window classes. Live with it. Smile | :)

Cheers
Steen.

"Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006

AnswerRe: RegisterClass Pin
Hamid_RT11-Oct-06 1:40
Hamid_RT11-Oct-06 1:40 
GeneralRe: RegisterClass Pin
Nishad S11-Oct-06 18:09
Nishad S11-Oct-06 18:09 
AnswerRe: RegisterClass Pin
David Crow11-Oct-06 7:39
David Crow11-Oct-06 7:39 
GeneralRe: RegisterClass Pin
Nishad S11-Oct-06 18:07
Nishad S11-Oct-06 18:07 
Questionwhats wrong with my program. [modified] Pin
dorbeck10-Oct-06 23:50
dorbeck10-Oct-06 23:50 
AnswerRe: whats wrong with my program. Pin
Cedric Moonen10-Oct-06 23:59
Cedric Moonen10-Oct-06 23:59 
GeneralRe: whats wrong with my program. Pin
dorbeck11-Oct-06 2:15
dorbeck11-Oct-06 2:15 
GeneralRe: whats wrong with my program. Pin
Cedric Moonen11-Oct-06 2:30
Cedric Moonen11-Oct-06 2:30 
GeneralRe: whats wrong with my program. Pin
dorbeck11-Oct-06 2:44
dorbeck11-Oct-06 2:44 
GeneralRe: whats wrong with my program. Pin
Cedric Moonen11-Oct-06 3:02
Cedric Moonen11-Oct-06 3:02 
GeneralRe: whats wrong with my program. Pin
dorbeck11-Oct-06 21:26
dorbeck11-Oct-06 21:26 
GeneralRe: whats wrong with my program. Pin
Cedric Moonen11-Oct-06 21:44
Cedric Moonen11-Oct-06 21:44 
GeneralRe: whats wrong with my program. Pin
dorbeck11-Oct-06 21:56
dorbeck11-Oct-06 21:56 
GeneralRe: whats wrong with my program. Pin
Cedric Moonen11-Oct-06 22:41
Cedric Moonen11-Oct-06 22:41 
GeneralRe: whats wrong with my program. Pin
dorbeck11-Oct-06 23:00
dorbeck11-Oct-06 23:00 
GeneralRe: whats wrong with my program. Pin
David Crow11-Oct-06 7:42
David Crow11-Oct-06 7:42 
JokeRe: whats wrong with my program. Pin
Rajesh R Subramanian11-Oct-06 0:02
professionalRajesh R Subramanian11-Oct-06 0:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.