Jump to content

  • Log In with Google      Sign In   
  • Create Account


Ubermeowmix

Member Since 30 Jan 2010
Offline Last Active Jul 17 2014 05:44 PM
-----

#5089142 Windows.h has just dissappeared!?

Posted by Ubermeowmix on 26 August 2013 - 05:03 AM

Rebooting did nothing, it seems only directX referenced files are showing up so I am uninstalling and reinstalling Visual studio and the DirectX SDK. It happened after I ran the code for a simple DirectX11 window. Was working fine then everything just dissappeared :S

 

Will let you know if it works, it's bloody frustrating. Everytime I have the time to really get going on a project, something kicks me in the nuts and stops me dead :(




#5089123 Windows.h has just dissappeared!?

Posted by Ubermeowmix on 26 August 2013 - 03:08 AM

I was coding some simple demo's, and then all of a sudden it came up with the following errors:

 

1>------ Build started: Project: Blank Direct3D, Configuration: Debug Win32 ------
1>  main.cpp
1>c:\users\Me\blank direct3d\blank direct3d\main.cpp(1): fatal error C1083: Cannot open include file: 'Windows.h': No such file or directory
1>  DX11DemoBase.cpp
1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d3d11.h(27): fatal error C1083: Cannot open include file: 'rpc.h': No such file or directory
1>  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 

I cannot reinstall DirectX as it fails everytime, and yes I've redownloaded the install file twice now.

 

What the Hell is going on, I did one demo using #include <Windows.h> that worked fine, now it's fallen on it's arse.

 




#5068423 OpenGL driving me crazy

Posted by Ubermeowmix on 09 June 2013 - 09:19 AM

Fixed it, schoolboy error!

 

I was including the whole freeGlut folder under Linker->general->additional includes

 

That is sooooo totally wrong, you have to (step by step)

 

1. Download & copy the freeGlut folder to your project.

2. Link in VC++Directories

2a. In 'Include Directories' the include folder in your copied freeGlut folder

2b. In 'Library Directories', to the lib folder respectively.

3. Add OpenGL32.lib, freeglut.lib to the Linker->Input->Additional Dependencies section.

 

Run the code and have a great weight lifted from your shoulders!

 

Accidentally duplicated this post, sorry guys.




#5068421 Help with OpenGL initialization

Posted by Ubermeowmix on 09 June 2013 - 09:17 AM

Fixed it, schoolboy error!

 

I was including the whole freeGlut folder under Linker->general->additional includes

 

That is sooooo totally wrong, you have to (step by step)

 

1. Download & copy the freeGlut folder to your project.

2. Link in VC++Directories

2a. In 'Include Directories' the include folder in your copied freeGlut folder

2b. In 'Library Directories', to the lib folder respectively.

3. Add OpenGL32.lib, freeglut.lib to the Linker->Input->Additional Dependencies section.

 

Run the code and have a great weight lifted from your shoulders!




PARTNERS