Win32 issue

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Win32 issue

Postby eatcomics on Sun Feb 28, 2010 10:55 pm

eatcomics wrote:Hi guys, I'm having trouble compiling a simple Win32 MessagBox program. I've never had this problem before and I've been searching for 2 days to fix it. Every time I find a way to make one problem go away another arises. I think if I can fix this one it will work. Apparently the complier can't open User32.dll. Here is the error:

.\Main.cpp(2) : fatal error C1083: Cannot open type library file: 'c:\program files\microsoft sdks\windows\v6.1\lib\user32.lib': Error loading type library/DLL.

does anyone know how to fix this. I've checked the file, its there... but MSVC++ can't find it for some reason

Thanks in advance

Nevermind, I fixed it, I had #import User32.lib as an earlier fix, and forgot about it...


Not nevermind... I keep getting a linker error saying:
Main.obj : error LNK2028: unresolved token (0A000029) "extern "C" int __stdcall MessageBoxA(struct HWND__ *,char const *,char const *,unsigned int)" (?MessageBoxA@@$$J216YGHPAUHWND__@@PBD1I@Z) referenced in function "extern "C" int __cdecl MessageBox(struct HWND__ *,char const *,char const *,unsigned int)" (?MessageBox@@$$J0YAHPAUHWND__@@PBD1I@Z)

ugh
Image
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
 
Posts: 2665
Joined: Sat Mar 08, 2008 9:52 pm
Location: Illinois

Return to Programming Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron