Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 26 Apr 2012
Offline Last Active Apr 28 2012 04:46 AM

Topics I've Started

DirectX Tutorial.com - App crashes

26 April 2012 - 12:24 PM

I've tried to use the code example from DirectX Tutorial.com to create a basic triangle in a DirectX win32 application.

Project built in Visual Studio, library paths fixed etc. Tried to change driver specification from HARDWARE to REFENCE, didn't solve crash issue.

Tutorial code I tried to use was: http://www.directxtu.../BA5.aspx#still

Picture of crash:

I also had to add #include <StdAfx.h> at start of project, otherwise the build would not work in Visual Studio.
Which wasn't mentioned in the code example on the tutorial place. When I add it, build goes ok, but a Error comes that says it cannot find it.
1 IntelliSense: cannot open source file "StdAfx.h" c:\users\administratör\documents\visual studio 2010\projects\directx_test\directx_test\directx_test.cpp 2 2 DirectX_Test

1>------ Build started: Project: DirectX_Test, Configuration: Debug Win32 ------
1> DirectX_Test.cpp
1> DirectX_Test.vcxproj -> C:\Users\Administratör\documents\visual studio 2010\Projects\DirectX_Test\Debug\DirectX_Test.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Anyone able to figure out why my application after build doesn't work?

And why I need to put that include of StdAfx.h - that Visual Studio cannot even find?

Cheers Magnar