Sign in to follow this  

Really Annoying Error - Fixed

This topic is 4094 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been getting this error since typing this code in that I've had working before: main.obj : error LNK2019: unresolved external symbol __imp__UnregisterClassA@8 referenced in function "bool __cdecl UnregisterWindowClasses(struct HINSTANCE__ *)" (?UnregisterWindowClasses@@YA_NPAUHINSTANCE__@@@Z) UnregisterWindowClass is a function of my own. It wouldn't be such a big problem but I'm getting it 10 different times on other functions like RegisterClass, etc... It's definately possible I don't have something linked right in C++ Express Edition because last time I compiled it in the older C++ compiler. I linked it enough so Windows.h wouldn't error but I think it's not finding these basic Windows functions. I already tried deleting the .obj and recompiling. Any ideas? [Edited by - programmermattc on September 27, 2006 5:01:01 PM]

Share this post


Link to post
Share on other sites
Are you sure your project is set up as a Win32 application? AFAIK the compiler won't know to link against the Windows libraries if the project is merely set up as a console application.


P.S. Oops never mind, I didn't see the FIXED in the thread title. =0

Share this post


Link to post
Share on other sites
Thats ok, I had started my application as a blank project and tried to include it without adding this reallyl ong line of Additional Dependencies to a file located somewhere within C++'s folders. Basically I didn't read far enough of the 'Do this with the SDK' that MS has up on their site.

Share this post


Link to post
Share on other sites

This topic is 4094 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this