Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
Christian Graus3-Jun-03 17:50
protectorChristian Graus3-Jun-03 17:50 
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
tomjacksun3-Jun-03 18:28
tomjacksun3-Jun-03 18:28 
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
J. Dunlap3-Jun-03 18:34
J. Dunlap3-Jun-03 18:34 
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
tomjacksun3-Jun-03 18:37
tomjacksun3-Jun-03 18:37 
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
Christian Graus3-Jun-03 19:37
protectorChristian Graus3-Jun-03 19:37 
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
sunjohn3-Jun-03 19:47
sunjohn3-Jun-03 19:47 
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
Christian Graus3-Jun-03 19:53
protectorChristian Graus3-Jun-03 19:53 
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
Toni783-Jun-03 19:51
Toni783-Jun-03 19:51 
I have a few comments to make.

1. Format your source code because nobody will go through it and read it the way you have posted it. It's a mess. To learn how to format your source code so it would display properly read the Frequently Asked Questions section on this page.
2. Judging from your current and previous posts, I suggest that you read some Windows 32 Programing books or tutorials. Here is a website just for a start http://www.winprog.org/tutorial/
3. The answer to your question.
You can't comment out the parts where WNDCLASSEX's members are being initialized. You need to initialize all the members to their appropriate values. So comment out
//wincl.cbSize = sizeof (WNDCLASSEX);
//wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
to
wincl.cbSize = sizeof (WNDCLASSEX);
wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
and you program will run fine.

// Afterall I realized that even my comment lines have bugs
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
Christian Graus3-Jun-03 19:54
protectorChristian Graus3-Jun-03 19:54 
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
Toni783-Jun-03 20:03
Toni783-Jun-03 20:03 
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
sunjohn3-Jun-03 20:23
sunjohn3-Jun-03 20:23 
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
Christian Graus3-Jun-03 20:25
protectorChristian Graus3-Jun-03 20:25 
GeneralRe: Why don't run the same programe code on vc++ compiler Pin
sunjohn3-Jun-03 20:51
sunjohn3-Jun-03 20:51 
GeneralA question about GDI+ Pin
Anonymous3-Jun-03 13:53
Anonymous3-Jun-03 13:53 
GeneralRe: A question about GDI+ Pin
ucs3-Jun-03 23:56
ucs3-Jun-03 23:56 
GeneralRe: A question about GDI+ Pin
Anonymous4-Jun-03 4:22
Anonymous4-Jun-03 4:22 
GeneralOne more question Pin
Anonymous4-Jun-03 6:02
Anonymous4-Jun-03 6:02 
GeneralRe: One more question Pin
ucs4-Jun-03 12:46
ucs4-Jun-03 12:46 
GeneralRegistry HELP Pin
yoshi113-Jun-03 13:19
yoshi113-Jun-03 13:19 
GeneralRe: Registry HELP Pin
valikac3-Jun-03 13:27
valikac3-Jun-03 13:27 
GeneralRe: Registry HELP Pin
olinn3-Jun-03 17:14
olinn3-Jun-03 17:14 
GeneralTimer Pin
act_x3-Jun-03 12:35
act_x3-Jun-03 12:35 
GeneralRe: Timer Pin
valikac3-Jun-03 13:29
valikac3-Jun-03 13:29 
GeneralCSocket possible bug on win2k Pin
ucs3-Jun-03 12:32
ucs3-Jun-03 12:32 
GeneralRe: CSocket possible bug on win2k Pin
olinn3-Jun-03 17:30
olinn3-Jun-03 17:30 

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.