Page 1 of 1

Win32 issue

Posted: Sun Feb 28, 2010 8:55 pm
by eatcomics
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