Windows Programming

Started by neha kapila, January 20, 2015, 07:18:02 AM

Previous topic - Next topic

neha kapila

hi czerny,
i am thankful that you are helping me out. Actully this is not my domain and i have to do it coz my boss hav assigned some task.

i made the program in win32 exe. and now i am getting the three errors

warning #2018: Undeclared function 'InitInstance'; assuming 'extern' returning 'int'.
warning #2018: Undeclared function 'rectangle'; assuming 'extern' returning 'int'.
warning #2018: Undeclared function 'EndPAint'; assuming 'extern' returning 'int'.
Building shapes.exe.
POLINK: error: Unresolved external symbol '_InitInstance'.
POLINK: error: Unresolved external symbol '_rectangle'.
POLINK: error: Unresolved external symbol '_EndPAint'.
POLINK: fatal error: 3 unresolved external(s).


czerny

Check the spelling of these 3 words. C is a case sensitive language.
If you can not fix your errors this way, zip your project end post it as attachment.

neha kapila

now only one error is present in the attached zip file.
i marked that line containing error as a comment and then executed. the program executed with no error but was not able to run.
if you can try to run the same in your pc/laptop whether its working or not that would be very helpful.

also helper.h is also showing error so i just marked it as a comment. plz tell me about how to resolve that also.

czerny

You have only send the project file (*.prj) not the whole project, Select (Project --> ZIP files) in the ide and post the zip file.

neha kapila

oh i am sorry.
here is the zip file

czerny

Ok, you should still check your spelling!

And you have called a function 'Initinstance' which you have never defind. Write it!