DirectX problems
-
i have been trying to learn how to do directx programming in c++ but have not found any source code from tutorials that will compile. i am using visual studio express edition. when i try to compile the code that came with the directx 9 sdk it gives me errors for the include file 'winnt.h' such as: winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer' winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int what is causing this and how can i fix it? the only include file that i have is d3d9.h. also if anyone can point me towards a good direct3d beginners tutorial it would be very helpful. thank you in advance for any help you can offer - Kyle
-
i have been trying to learn how to do directx programming in c++ but have not found any source code from tutorials that will compile. i am using visual studio express edition. when i try to compile the code that came with the directx 9 sdk it gives me errors for the include file 'winnt.h' such as: winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer' winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int what is causing this and how can i fix it? the only include file that i have is d3d9.h. also if anyone can point me towards a good direct3d beginners tutorial it would be very helpful. thank you in advance for any help you can offer - Kyle
-
try to change the compiling version from the current into another , let see if it will work
suchuhui wrote:
try to change the compiling version from the current into another , let see if it will work
how do i do this? - Kyle
-
i have been trying to learn how to do directx programming in c++ but have not found any source code from tutorials that will compile. i am using visual studio express edition. when i try to compile the code that came with the directx 9 sdk it gives me errors for the include file 'winnt.h' such as: winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer' winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int what is causing this and how can i fix it? the only include file that i have is d3d9.h. also if anyone can point me towards a good direct3d beginners tutorial it would be very helpful. thank you in advance for any help you can offer - Kyle