Sign in to follow this  
147

Error when trying out a tutorial

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

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