Oct 18, 2008 at 9:14pm UTC
hi all,
i have a problem with opening a direct x 9.0 sample made by vc++ 6.0 in vc++ 2008
when i compile i got a lot of the following errors
1>solar.obj : error LNK2028: unresolved token (0A00005D) "extern "C" int __stdcall DestroyWindow(struct HWND__ *)" (?DestroyWindow@@$$J14YGHPAUHWND__@@@Z) referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@$$FYGJPAUHWND__@@IIJ@Z)
1>solar.obj : error LNK2028: unresolved token (0A000061) "extern "C" int __stdcall GetMessageA(struct tagMSG *,struct HWND__ *,unsigned int,unsigned int)" (?GetMessageA@@$$J216YGHPAUtagMSG@@PAUHWND__@@II@Z) referenced in function "extern "C" int __cdecl GetMessage(struct tagMSG *,struct HWND__ *,unsigned int,unsigned int)" (?GetMessage@@$$J0YAHPAUtagMSG@@PAUHWND__@@II@Z)
1>C:\Users\Marwa\Documents\Visual Studio 2008\Projects\lightening2\Debug\lightening2.exe : fatal error LNK1120: 38 unresolved externals
Last edited on Oct 18, 2008 at 9:18pm UTC
Oct 20, 2008 at 6:51pm UTC
VC++ 2008 and VC++ 6.0 use different compilers.
The unresolved dependencies are because you have not linked correct files. My guess is that the API you are trying to use (e.g GetMessage) is wrapped as something else in the .NET Framework so those sections of code would have to be changed.
You could try compiling it as a non-managed executable.