Jump to content

  • Log In with Google      Sign In   
  • Create Account


Jeffreyp

Member Since 24 Jan 2011
Offline Last Active Jul 07 2013 04:39 AM
-----

#4954313 CreateVertexShader fails

Posted by Jeffreyp on 30 June 2012 - 08:05 AM



It doesn't look like you are compiling it anywhere.

Check out D3DCompileFromFile.


I'm using visual studio 11. So i compile it from there : )
Also the buffer size isn't 0.


Am I missing something or maybe you don't know that shaders have to be compiled to byte code? What function are you calling to compile the shader into bytecode?


I found the problem. I did put the hlsl files instead of the cso files at
D3DReadFileToBlob

It is working now. Thanks : )


#4917924 [C++] Frame Limiting

Posted by Jeffreyp on 29 February 2012 - 01:59 PM

Look at this thread


#4917921 Getting an error when I compile Irrlicht

Posted by Jeffreyp on 29 February 2012 - 01:52 PM

Did you add the irrlicht lib?
A fast way :

#pragma comment(lib, "irrlicht.lib") // Or irr.lib can't remember




#4853781 Tetris sample in DirectX 10

Posted by Jeffreyp on 25 August 2011 - 12:55 PM

Why not just program in DirectX11 and set it to target DirectX10 hardware?
So you can learn DirectX11 instead of DirectX10.


#4852902 VS2010/DirectX linkage errors

Posted by Jeffreyp on 23 August 2011 - 01:22 PM

You probably not linking the DirectX9 libraries.
This will fix it :

#pragma comment(lib, "d3d9.lib")

#pragma comment(lib, "d3dx9.lib") // if i remember correct 

#pragma comment(lib, "winmm.lib")

#pragma comment(lib, "dinput8.lib")

#pragma comment(lib, "dxguid.lib")



Edit : i was still editing my post, but clb found the libs before me : )


#4798913 Windows.h missing ?

Posted by Jeffreyp on 15 April 2011 - 03:02 PM

1.Are you absolutely positive that the <windows.h> file is in your hard drive and existing?

Yes, because if i compile it with Dev-C++ it works fine.

2.Are you sure that all libs, dlls and such related to <windows.h> are existing?

Yes, because they existed before too.

3.Did you check and see because some DirectX headers already include <windows.h> or maybe the compiling is confused by some related issue to that.

When i try to compile a simple hello world program it gives the same error. So it isnt DirectX.

4.I can't really be the best judge because I don't use Visual Studio anymore... I use Code::Blocks, Bloodshed Dev, C++ mainly.

On dev c++ it compiles fine.

5.Is the windows.h file in the directory from which the preprocessor reads from? The file must be in the includes folder of your Visual Studio folder because that's where the #includes/header files and such are read from. Check and see if windows.h is there along with all of its other sub-headers, dlls and lib files.

No it isnt there. And after i see im missing alot more headers like <vector>.
So i already tried a repair but it didnt give me the headers back.
I guess its an issue with the compiler working with the SDK?


PARTNERS