|
-
Jul 19th, 2003, 12:10 AM
#1
Thread Starter
Frenzied Member
Dev will not let me compile function prototype!!
Here is the prototype:
LRESULT CALLBACK WndProc1(HWND, UINT, WPARAM, LPARAM);
Next I have a class (my own window, called Form).
Then I have the actual WndProc1 CALLBACK.
and that is it. No Main or anything.
It is not known if I leave out the prototype.
Error when using the prototype:
main.cpp D:\Files\C__PRO~1\Game\Dev\main.o(.text+0x38)
multiple definition of `_Z8WndProc1P6HWND__jjl@16'
-
Jul 20th, 2003, 08:11 PM
#2
Thread Starter
Frenzied Member
Does anyone know why Dev did not recognize the function prototype until I renamed the file to a .h file instead of a .cpp file?
-
Jul 20th, 2003, 08:20 PM
#3
Hyperactive Member
I'm not sure why either, but I can offer my 2 cents' explanation.
I think you are not supposed to include *.cpp, only *.h .
-
Jul 23rd, 2003, 07:18 AM
#4
Thread Starter
Frenzied Member
Yes, that was it. Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|