please help me. i am almost...

Started by
13 comments, last by Moe 24 years, 2 months ago
what book are you using? I first learned windows programming from WINDOWS GAME PROGRAMMING FOR DUMMIES by LaManthe. He uses WNDCLASS rather than WNDCLASSEX. It works for me, and you should learn to use it. I find it a lot easier than what you are doing.
D:
Advertisement
Hey Moe, I think I have some of the things you were doing wrong,

The error ''undefined... szWinName''
is because when you defined it, you put szWinNaMe
and C++ is case sensitive, so that should take care of that error.

''Undefined symbol WindowFunc''
I''m not sure about this, try defining your WindowFunc before WinMain(), it could just be that the compiler is being a sod, but I don''t see why (just try it)

''Undefined symbol IDI_WINDOWLOGO''
its IDI_WINLOGO, not IDI_WINDOWLOGO, I believe.

''called to undefined function RegisterCLassEx''
a typo, in your source you call RegisterCLassEx
drop the L to lower case.

''Undefined symbol CW_USERDEFAULT''
Its USEDEFAULT, and you should be using CreateWindowEx if you have a WNDCLASSEX structure.

I think thats right, If I''ve made any mistakes let me know,

Take it easy,

-Mezz

I am using ''windows 98 programming from the ground up'' (by Herbet Schildt).

Thanks for the ideas about those errors. Maybe i can get things cleared ups right awsy.

I will be sure to take things easy (I already am).

- Moe -
I got the WINLOGO fixed, and same with the szWinName, ClassEx. The USERDEFAULT is still giving me trouble along with the two ''type name expected'' errors. I think I will give bigshot''s code a try.

Try CW_USEDEFAULT...
And
LRESULT CALLBACK WindowFunc (HWND, UNIT, WPARAM, LPARAM);
should be
LRESULT CALLBACK WindowFunc(HWND, UINT, WPARAM, LPARAM);



A polar bear is a rectangular bear after a coordinate transform.
A polar bear is a rectangular bear after a coordinate transform.

This topic is closed to new replies.

Advertisement