Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Error when trying out a tutorial


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 147   Members   -  Reputation: 197

Like
0Likes
Like

Posted 28 July 2012 - 03:23 PM

I'm trying to learn the basics of DirectX and found a nice site for that (http://www.directxtutorial.com/Tutorial11/B-A/BA2.aspx).
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)?

Sponsor:

#2 Asesh   Members   -  Reputation: 268

Like
1Likes
Like

Posted 28 July 2012 - 07:39 PM

insert this code: #pragma comment(lib, "user32.lib")




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS