Sign in to follow this  
Fixxer

Error with 9.0 SDK Examples

Recommended Posts

Fixxer    100
I keep getting this error when running the examples: ------ Build started: Project: CreateDevice, Configuration: Debug Win32 ------ Compiling... CreateDevice.cpp c:\program files\microsoft directx 9.0 sdk (october 2005)\include\d3d9.h(40) : fatal error C1083: Cannot open include file: 'objbase.h': No such file or directory Build log was saved at "file://c:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Samples\C++\Direct3D\Tutorials\Tut01_CreateDevice\Debug\BuildLog.htm" CreateDevice - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I also some times get one that says it cannot find windows.h as well. Im using VC++ 2005

Share this post


Link to post
Share on other sites
Fixxer    100
Im using the express edition.
I thought I had download the platform SDK before... Ill check and download it again if its not there anymore.

Share this post


Link to post
Share on other sites
SiCrane    11839
Even if you downloaded the Platform SDK before you installed the Express Edition, you should probably download the latest version, and you still need to do the install steps listed on the Express Edition download page.

Share this post


Link to post
Share on other sites
Fixxer    100
Ok ive got the platform sdk and i added it to the lib and include paths.
Now i Get all these errors.

------ Build started: Project: CreateDevice, Configuration: Debug Win32 ------
Linking...
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z)
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__ValidateRect@8 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z)
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@@YGJPAUHWND__@@IIJ@Z)
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__UnregisterClassA@8 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__GetMessageA@16 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function _WinMain@16
CreateDevice.obj : error LNK2019: unresolved external symbol __imp__RegisterClassExA@4 referenced in function _WinMain@16
Debug/CreateDevice.exe : fatal error LNK1120: 11 unresolved externals
Build log was saved at "file://c:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Samples\C++\Direct3D\Tutorials\Tut01_CreateDevice\Debug\BuildLog.htm"
CreateDevice - 12 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this