Error with 9.0 SDK Examples

Started by
4 comments, last by Fixxer 18 years, 5 months ago
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
Advertisement
Are you using the Express Edition? If so, did you install the Platform SDK?
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.
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.
well it may be a while...
The install keeps getting errors.
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 ==========

This topic is closed to new replies.

Advertisement