• Advertisement
Sign in to follow this  

Error when trying out a tutorial

This topic is 2001 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'm trying to learn the basics of DirectX and found a nice site for that ([url="http://www.directxtutorial.com/Tutorial11/B-A/BA2.aspx"]http://www.directxtutorial.com/Tutorial11/B-A/BA2.aspx[/url]).
The problem is, that the VS2010 compiler only returns strange errors (I have followed the steps to use DirectX with VS2010).

Here are some of these:

Error 1 error LNK2028: unresolved token (0A000074) "extern "C" void __stdcall PostQuitMessage(int)" (?PostQuitMessage@@$$J14YGXH@Z) referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@$$FYGJPAUHWND__@@IIJ@Z) C:\Users\Simon\Programme\DirectX\DirectXSample1\DirectXSample1\DirectXSample1.obj DirectXSample1

Error 2 error LNK2028: unresolved token (0A00007D) "extern "C" struct HICON__ * __stdcall LoadCursorW(struct HINSTANCE__ *,wchar_t const *)" (?LoadCursorW@@$$J18YGPAUHICON__@@PAUHINSTANCE__@@PB_W@Z) referenced in function "extern "C" int __stdcall WinMain(struct HINSTANCE__ *,struct HINSTANCE__ *,char *,int)" (?WinMain@@$$J216YGHPAUHINSTANCE__@@0PADH@Z) C:\Users\Simon\Programme\DirectX\DirectXSample1\DirectXSample1\DirectXSample1.obj DirectXSample1

Error 3 error LNK2028: unresolved token (0A00008D) "extern "C" int __stdcall TranslateMessage(struct tagMSG const *)" (?TranslateMessage@@$$J14YGHPBUtagMSG@@@Z) referenced in function "extern "C" int __stdcall WinMain(struct HINSTANCE__ *,struct HINSTANCE__ *,char *,int)" (?WinMain@@$$J216YGHPAUHINSTANCE__@@0PADH@Z) C:\Users\Simon\Programme\DirectX\DirectXSample1\DirectXSample1\DirectXSample1.obj DirectXSample1

I do not understand where the problem is. I tried to copy the code from the site and only change the property that allows software rendering.

Does anyone has a idea where this could be come from (the code is, besides this one changed flag, the same as on this site)?

Share this post


Link to post
Share on other sites
Advertisement
insert this code: #pragma comment(lib, "user32.lib")

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement