Jump to content
  • Advertisement
Sign in to follow this  
Lownen

Help with LNK2028 and LNK2019

This topic is 4284 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 am trying to learn the use of DirectX from the tutorials available on http://www.directtutorial.com/index.php. These are the best tutorials I have been able to find on the subject. However, I am trying to compile the preliminary Win32 exercises, without even making any DirectX calls, and I am unable to link the project. I get several LNK2028 and LNK2019 errors which apparently relate to the calls in the windowsx.h file. However, I am not getting an error that it can't find the file. My best uninformed guess is that I need to include some additional library in my project settings, but I can't find anything on the web that seems to relate directly to my circumstances. Any help would be appreciated.

Share this post


Link to post
Share on other sites
Advertisement
I just tried the source out, and everything works fine; no additional libraries needed. I'm guessing you created a Win32 Console Application instead of a Win32 Project. Try recreating the project as a proper Win32 Windows application, and your linker errors should go away.

If not, then you've got other problems that will need exploring.

Share this post


Link to post
Share on other sites
Omega147;

Thanks for your prompt reply. I am working in Visual C++ 2005 Express Edition. I created a CLR Empty Project. Under Win32 Project Types the Win32 Console Application template is the only one available. The "Search Online Templates" finds no additional templates, so I have no clue how to create a Win32 Windows Application.

Best!

Share this post


Link to post
Share on other sites
The Win32 Project template should be there unless you unchecked a few things during installation. You may have to uninstall and reinstall Express making certain that you check items pertaining to Windows Projects so that they're installed.

There are other ways to get the templates installed without reinstalling, but from my experience and failed attempts to do so, reinstalling is the best way to go--I tried adding a C# template a while back, but after a week of trying I just reinstalled. Hope that works.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!