Visual Studio 2010 library problem
Ok so I just installed Visual Studio 2010 and DirectX SDK (开发者_Go百科DirectX Software Development Kit June 2010 9.29.1962), and I tried to make a simple program to test everything out. I've put in a source which works well on Dev C++, but somehow VS keeps giving me this error:
error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function _WinMain@16
I know I have to link a library to fix it but it simply cannot be done!! I googled a lot and didn't find anything useful so far. Tried to #pragma coment it, tried to link it in project properties, tried and tried and failed...
So my question is: How to link libraries in Visual Studio 2010??
Hmm. try going to the Output category of the Link tab in the Project Settings dialog box, set the Entry Point Symbol to wWinMainCRTStartup.
精彩评论