vc++ 2005 express want to build dxsdk sample usp10.h missing

Hi, its me another time

So I installed vc++ 2005 express and did set up the include/lib file directories for the sdk and tried to build a sample of the newest dxsdk (december 2005). But now I get the message

Compiling...

dxstdafx.cpp

c:\programmieren\dxsamples\configsystem\common\dxutgui.h(12) : fatal error C1083: Cannot open include file: 'usp10.h': No such file or directory

Build log was saved at "file://c:\programmieren\dxsamples\ConfigSystem\Debug\BuildLog.htm"

ConfigSystem - 1 error(s), 0 warning(s)

I did not even try to change the settings because there simply is no usp10.h file in the sdk directory. Nor is it in the Visual Studio 8 directory or the directory where I installed the dxsample and it doesen't seem to be elsewhere on my hd. Of course I tried more than just one of the samples but I always get the same error. So can please someone help me

 

 

 

 



Answer this question

vc++ 2005 express want to build dxsdk sample usp10.h missing

  • new to .NET

    I had lots of problems installing it, but that was my fault, I forgot to donwload the last file. But I'm afraid the problem isn't solved yet.

    I first i put the "Microsoft sdk" Folders (include and lib)  to the last lines of the c++ directories when trying to build the simple sample I got

    ------ Build started: Project: SimpleSample, Configuration: Debug Win32 ------

    Compiling...

    DXUT.cpp

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(557) : warning C4244: 'argument' : conversion from 'DWORD_PTR' to 'DWORD', possible loss of data

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(932) : error C2065: 'GWLP_WNDPROC' : undeclared identifier

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(932) : error C3861: 'SetWindowLongPtr': identifier not found

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(958) : error C2065: 'GWLP_HINSTANCE' : undeclared identifier

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(958) : error C3861: 'GetWindowLongPtr': identifier not found

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(3136) : warning C4312: 'type cast' : conversion from 'LPARAM' to 'KBDLLHOOKSTRUCT *' of greater size

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4064) : error C2065: 'WM_XBUTTONDOWN' : undeclared identifier

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4065) : error C2065: 'WM_XBUTTONUP' : undeclared identifier

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4066) : error C2065: 'WM_XBUTTONDBLCLK' : undeclared identifier

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4091) : error C2065: 'MK_XBUTTON1' : undeclared identifier

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4092) : error C2065: 'MK_XBUTTON2' : undeclared identifier

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4224) : warning C4312: 'type cast' : conversion from 'LPARAM' to 'MINMAXINFO *' of greater size

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4225) : warning C4312: 'type cast' : conversion from 'LPARAM' to 'MINMAXINFO *' of greater size

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4983) : error C2065: 'VK_XBUTTON1' : undeclared identifier

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4983) : error C2051: case expression not constant

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4984) : error C2051: case expression not constant

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4985) : error C2065: 'VK_XBUTTON2' : undeclared identifier

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4985) : error C2051: case expression not constant

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(4986) : error C2051: case expression not constant

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(5005) : error C2065: 'GCLP_HCURSOR' : undeclared identifier

    c:\programmieren\dxsamples\simplesample\common\dxut.cpp(5005) : error C3861: 'GetClassLongPtr': identifier not found

    DXUTgui.cpp

    c:\programmieren\dxsamples\simplesample\common\dxutgui.cpp(729) : error C3861: 'IS_INTRESOURCE': identifier not found

    c:\programmieren\dxsamples\simplesample\common\dxutgui.cpp(753) : error C3861: 'IS_INTRESOURCE': identifier not found

    c:\programmieren\dxsamples\simplesample\common\dxutgui.cpp(1003) : error C2065: 'WM_XBUTTONDBLCLK' : undeclared identifier

    c:\programmieren\dxsamples\simplesample\common\dxutgui.cpp(1003) : error C2051: case expression not constant

    c:\programmieren\dxsamples\simplesample\common\dxutgui.cpp(1069) : warning C4312: 'type cast' : conversion from 'LPARAM' to 'HWND' of greater size

    c:\programmieren\dxsamples\simplesample\common\dxutgui.cpp(4249) : warning C4312: 'type cast' : conversion from 'LPARAM' to 'HWND' of greater size

    c:\programmieren\dxsamples\simplesample\common\dxutgui.cpp(4931) : warning C4312: 'type cast' : conversion from 'LPARAM' to 'HWND' of greater size

    c:\programmieren\dxsamples\simplesample\common\dxutgui.cpp(6271) : warning C4312: 'type cast' : conversion from 'unsigned int' to 'HKEY' of greater size

    Generating Code...

    Build log was saved at "file://c:\Programmieren\dxsamples\SimpleSample\Debug\BuildLog.htm"

    SimpleSample - 21 error(s), 8 warning(s)

    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    when I put the directories to the second lines i got

    ------ Build started: Project: SimpleSample, Configuration: Debug Win32 ------

    Compiling...

    dxstdafx.cpp

    Compiling...

    DXUT.cpp

    DXUTenum.cpp

    DXUTgui.cpp

    DXUTRes.cpp

    DXUTmisc.cpp

    DXUTSettingsDlg.cpp

    SimpleSample.cpp

    Generating Code...

    Compiling resources...

    Linking...

    dxut.obj : error LNK2019: unresolved external symbol __imp__SystemParametersInfoW@16 referenced in function "long __cdecl DXUTInit(bool,bool,bool,bool)" ( DXUTInit@@YAJ_N000@Z)

    dxutgui.obj : error LNK2001: unresolved external symbol __imp__SystemParametersInfoW@16

    dxut.obj : error LNK2019: unresolved external symbol __imp__CommandLineToArgvW@8 referenced in function "void __cdecl DXUTParseCommandLine(void)" ( DXUTParseCommandLine@@YAXXZ)

    dxut.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExW@48 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" ( DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__AdjustWindowRect@12 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" ( DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__SetRect@20 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" ( DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)

    dxutgui.obj : error LNK2001: unresolved external symbol __imp__SetRect@20

    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__SetRect@20

    dxut.obj : error LNK2019: unresolved external symbol __imp__RegisterClassW@4 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" ( DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetStockObject@4 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" ( DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__LoadCursorW@8 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" ( DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__ExtractIconW@12 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" ( DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetWindowLongW@8 referenced in function "long __cdecl DXUTSetWindow(struct HWND__ *,struct HWND__ *,struct HWND__ *,bool)" ( DXUTSetWindow@@YAJPAUHWND__@@00_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetWindowTextW@12 referenced in function "long __cdecl DXUTSetWindow(struct HWND__ *,struct HWND__ *,struct HWND__ *,bool)" ( DXUTSetWindow@@YAJPAUHWND__@@00_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__SetWindowLongW@12 referenced in function "long __cdecl DXUTSetWindow(struct HWND__ *,struct HWND__ *,struct HWND__ *,bool)" ( DXUTSetWindow@@YAJPAUHWND__@@00_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__IsWindowVisible@4 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" ( DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__IsZoomed@4 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" ( DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetWindowRect@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" ( DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetClientRect@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" ( DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)

    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__GetClientRect@8

    DXUTSettingsDlg.obj : error LNK2001: unresolved external symbol __imp__GetClientRect@8

    dxut.obj : error LNK2019: unresolved external symbol __imp__IsIconic@4 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" ( DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__SetWindowPos@28 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" ( DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__SetWindowPlacement@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" ( DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetMenu@4 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" ( DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetWindowPlacement@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" ( DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__SetMenu@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" ( DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" ( DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__CallNextHookEx@16 referenced in function "long __stdcall LowLevelKeyboardProc(int,unsigned int,long)" ( LowLevelKeyboardProc@@YGJHIJ@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__SetWindowsHookExW@16 referenced in function "void __cdecl DXUTAllowShortcutKeys(bool)" ( DXUTAllowShortcutKeys@@YAX_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__UnhookWindowsHookEx@4 referenced in function "void __cdecl DXUTAllowShortcutKeys(bool)" ( DXUTAllowShortcutKeys@@YAX_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__DestroyAcceleratorTable@4 referenced in function "long __cdecl DXUTMainLoop(struct HACCEL__ *)" ( DXUTMainLoop@@YAJPAUHACCEL__@@@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageW@4 referenced in function "long __cdecl DXUTMainLoop(struct HACCEL__ *)" ( DXUTMainLoop@@YAJPAUHACCEL__@@@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function "long __cdecl DXUTMainLoop(struct HACCEL__ *)" ( DXUTMainLoop@@YAJPAUHACCEL__@@@Z)

    dxutgui.obj : error LNK2001: unresolved external symbol __imp__TranslateMessage@4

    dxut.obj : error LNK2019: unresolved external symbol __imp__TranslateAcceleratorW@12 referenced in function "long __cdecl DXUTMainLoop(struct HACCEL__ *)" ( DXUTMainLoop@@YAJPAUHACCEL__@@@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__PeekMessageW@20 referenced in function "long __cdecl DXUTMainLoop(struct HACCEL__ *)" ( DXUTMainLoop@@YAJPAUHACCEL__@@@Z)

    dxutgui.obj : error LNK2001: unresolved external symbol __imp__PeekMessageW@20

    dxut.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcW@16 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)

    dxutgui.obj : error LNK2001: unresolved external symbol __imp__PostQuitMessage@4

    dxut.obj : error LNK2019: unresolved external symbol __imp__UnregisterClassW@8 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__DestroyMenu@4 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__SendMessageW@16 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)

    dxutgui.obj : error LNK2001: unresolved external symbol __imp__SendMessageW@16

    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__SendMessageW@16

    dxut.obj : error LNK2019: unresolved external symbol __imp__ClipCursor@4 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetCursorPos@4 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)

    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__GetCursorPos@4

    dxut.obj : error LNK2019: unresolved external symbol __imp__ScreenToClient@8 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetAsyncKeyState@4 referenced in function "bool __cdecl DXUTIsKeyDown(unsigned char)" ( DXUTIsKeyDown@@YA_NE@Z)

    dxutgui.obj : error LNK2001: unresolved external symbol __imp__GetAsyncKeyState@4

    dxut.obj : error LNK2019: unresolved external symbol __imp__MessageBoxW@16 referenced in function "void __cdecl DXUTDisplayErrorMessage(long)" ( DXUTDisplayErrorMessage@@YAXJ@Z)

    dxerr.lib(dxerr.obj) : error LNK2001: unresolved external symbol __imp__MessageBoxW@16

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetSystemMetrics@4 referenced in function "void __cdecl DXUTDisplayErrorMessage(long)" ( DXUTDisplayErrorMessage@@YAXJ@Z)

    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__GetSystemMetrics@4

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetClassLongW@8 referenced in function "void __cdecl DXUTSetupCursor(void)" ( DXUTSetupCursor@@YAXXZ)

    dxut.obj : error LNK2019: unresolved external symbol __imp__SetCursor@4 referenced in function "void __cdecl DXUTSetupCursor(void)" ( DXUTSetupCursor@@YAXXZ)

    dxut.obj : error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" ( DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" ( DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" ( DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetDIBits@28 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" ( DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" ( DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__CreateCompatibleDC@4 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" ( DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" ( DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetObjectW@12 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" ( DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)

    dxut.obj : error LNK2019: unresolved external symbol __imp__GetIconInfo@8 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" ( DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__GetKeyState@4 referenced in function "public: bool __thiscall CDXUTDialog::MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" ( MsgProc@CDXUTDialog@@QAE_NPAUHWND__@@IIJ@Z)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__ReleaseCapture@0 referenced in function "public: bool __thiscall CDXUTDialog::MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" ( MsgProc@CDXUTDialog@@QAE_NPAUHWND__@@IIJ@Z)

    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__ReleaseCapture@0

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__SetCapture@4 referenced in function "public: bool __thiscall CDXUTDialog::MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" ( MsgProc@CDXUTDialog@@QAE_NPAUHWND__@@IIJ@Z)

    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__SetCapture@4

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__OffsetRect@12 referenced in function "public: long __thiscall CDXUTDialog::DrawRect(struct tagRECT *,unsigned long)" ( DrawRect@CDXUTDialog@@QAEJPAUtagRECT@@K@Z)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__PtInRect@12 referenced in function "public: virtual int __thiscall CDXUTControl::ContainsPoint(struct tagPOINT)" ( ContainsPoint@CDXUTControl@@UAEHUtagPOINT@@@Z)

    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__PtInRect@12

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__InflateRect@12 referenced in function "public: virtual void __thiscall CDXUTListBox::UpdateRects(void)" ( UpdateRects@CDXUTListBox@@UAEXXZ)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__GetCaretBlinkTime@0 referenced in function "public: __thiscall CDXUTEditBox::CDXUTEditBox(class CDXUTDialog *)" ( 0CDXUTEditBox@@QAE@PAVCDXUTDialog@@@Z)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__CloseClipboard@0 referenced in function "protected: void __thiscall CDXUTEditBox::CopyToClipboard(void)" ( CopyToClipboard@CDXUTEditBox@@IAEXXZ)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__SetClipboardData@8 referenced in function "protected: void __thiscall CDXUTEditBox::CopyToClipboard(void)" ( CopyToClipboard@CDXUTEditBox@@IAEXXZ)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__EmptyClipboard@0 referenced in function "protected: void __thiscall CDXUTEditBox::CopyToClipboard(void)" ( CopyToClipboard@CDXUTEditBox@@IAEXXZ)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__OpenClipboard@4 referenced in function "protected: void __thiscall CDXUTEditBox::CopyToClipboard(void)" ( CopyToClipboard@CDXUTEditBox@@IAEXXZ)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__GetClipboardData@4 referenced in function "protected: void __thiscall CDXUTEditBox::PasteFromClipboard(void)" ( PasteFromClipboard@CDXUTEditBox@@IAEXXZ)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__IntersectRect@12 referenced in function "public: virtual void __thiscall CDXUTEditBox::Render(struct IDirect3DDevice9 *,float)" ( Render@CDXUTEditBox@@UAEXPAUIDirect3DDevice9@@M@Z)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__keybd_event@16 referenced in function "protected: static void __cdecl CDXUTIMEEditBox::SendKey(unsigned char)" ( SendKey@CDXUTIMEEditBox@@KAXE@Z)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__GetKeyboardLayout@4 referenced in function "protected: static void __cdecl CDXUTIMEEditBox::CheckInputLocale(void)" ( CheckInputLocale@CDXUTIMEEditBox@@KAXXZ)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "protected: static void __cdecl CDXUTIMEEditBox::GetReadingWindowOrientation(unsigned long)" ( GetReadingWindowOrientation@CDXUTIMEEditBox@@KAXK@Z)

    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__RegCloseKey@4

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExW@24 referenced in function "protected: static void __cdecl CDXUTIMEEditBox::GetReadingWindowOrientation(unsigned long)" ( GetReadingWindowOrientation@CDXUTIMEEditBox@@KAXK@Z)

    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__RegQueryValueExW@24

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__RegOpenKeyExW@20 referenced in function "protected: static void __cdecl CDXUTIMEEditBox::GetReadingWindowOrientation(unsigned long)" ( GetReadingWindowOrientation@CDXUTIMEEditBox@@KAXK@Z)

    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__RegOpenKeyExW@20

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function "public: void __thiscall CDXUTIMEEditBox::PumpMessage(void)" ( PumpMessage@CDXUTIMEEditBox@@QAEXXZ)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__GetMessageW@16 referenced in function "public: void __thiscall CDXUTIMEEditBox::PumpMessage(void)" ( PumpMessage@CDXUTIMEEditBox@@QAEXXZ)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__GetKeyboardLayoutList@8 referenced in function "public: static bool __cdecl CDXUTIMEEditBox::StaticMsgProc(unsigned int,unsigned int,long)" ( StaticMsgProc@CDXUTIMEEditBox@@SA_NIIJ@Z)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__PostMessageW@16 referenced in function "public: virtual bool __thiscall CDXUTIMEEditBox::MsgProc(unsigned int,unsigned int,long)" ( MsgProc@CDXUTIMEEditBox@@UAE_NIIJ@Z)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__GetFocus@0 referenced in function "public: virtual bool __thiscall CDXUTIMEEditBox::MsgProc(unsigned int,unsigned int,long)" ( MsgProc@CDXUTIMEEditBox@@UAE_NIIJ@Z)

    dxutgui.obj : error LNK2019: unresolved external symbol __imp__SetRectEmpty@4 referenced in function "public: void __thiscall CDXUTElement::SetTexture(unsigned int,struct tagRECT *,unsigned long)" ( SetTexture@CDXUTElement@@QAEXIPAUtagRECT@@K@Z)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__RegSetValueExW@24 referenced in function "void __cdecl DXUTDisplaySwitchingToREFWarning(void)" ( DXUTDisplaySwitchingToREFWarning@@YAXXZ)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__DialogBoxIndirectParamW@20 referenced in function "void __cdecl DXUTDisplaySwitchingToREFWarning(void)" ( DXUTDisplaySwitchingToREFWarning@@YAXXZ)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__EndDialog@8 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__EnableWindow@8 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__CheckDlgButton@12 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__IsDlgButtonChecked@8 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__SetDlgItemTextW@12 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__GetDlgItem@8 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__LoadIconW@8 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__SetWindowTextW@8 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" ( DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__GetForegroundWindow@0 referenced in function "public: __thiscall CD3DArcBall::CD3DArcBall(void)" ( 0CD3DArcBall@@QAE@XZ)

    dxerr.lib(dxerr.obj) : error LNK2001: unresolved external symbol __imp__GetForegroundWindow@0

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__SetCursorPos@8 referenced in function "protected: void __thiscall CBaseCamera::GetInput(bool,bool,bool,bool)" ( GetInput@CBaseCamera@@IAEX_N000@Z)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__SystemParametersInfoA@16 referenced in function "int __cdecl DXUTGetMonitorInfo(struct HMONITOR__ *,struct tagMONITORINFO *)" ( DXUTGetMonitorInfo@@YAHPAUHMONITOR__@@PAUtagMONITORINFO@@@Z)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__EnumDisplaySettingsW@12 referenced in function "void __cdecl DXUTGetDesktopResolution(unsigned int,unsigned int *,unsigned int *)" ( DXUTGetDesktopResolution@@YAXIPAI0@Z)

    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__ShellExecuteW@24 referenced in function "bool __cdecl DXUTReLaunchMediaCenter(void)" ( DXUTReLaunchMediaCenter@@YA_NXZ)

    dxerr.lib(dxerr.obj) : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _DXTraceA@20

    Debug\SimpleSample.exe : fatal error LNK1120: 94 unresolved externals

    Build log was saved at "file://c:\Programmieren\dxsamples\SimpleSample\Debug\BuildLog.htm"

    SimpleSample - 116 error(s), 0 warning(s)

    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    I tried lots of settings with the directories setup of the compiler but it didn't help.

    Sorry for the very big posting, but I think its necessary to find the problem


  • DOSST

    Ok now I have it. It seems that I did download an older version of vc++ 2005 but here is the solution http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx
  • tracy97214

    I had the same issue- trying to convert the texture tutorial to use dxutil code.

    at first it barfed on all utility code....I had to get the project to auto create the .pch in the settings

    Now there is some funky linking behavior between adding

    DXUTInit( true, true, true );

    DXUTSetCallbackDeviceDestroyed( OnDestroyDevice );

    I added just the init line after adding some other dxutil code (like create window) -and that's when I got the link error. It wouldn't go away- so i started adding some other utility code- ie destroy device....now It requires two builds after a clean to get it to build, but will build. However the link error with the init comes back and stays if I remove the ondestroydevice line.

    I suspect I have an issue in the linking or in my generation of the .pch. any help here would be appreciated.



  • Ken Sykora7765

    Tommerenia wrote:
    Same for me; absolutely a ba-zillion linker errors! And no solution...

    I am getting BORED, LOL... :( :) :\

    None of the DirectX SDK example c++ solutions will link correctly.

    I have reinstalled all of these below - twice!
    DirectZ SDK
    2003 Platform SDK
    Visual Express C++

    I have deleted the CORRECT lib and include locations and then re-input them
    manually - still same thing:
    50 to 150 linker ERRORS.

    No matter what I do 50-150 linker errors for EVERY Direct SDK example. . .
    What good is this SDK anyway How could it not be set up right All the installs
    used the default names for directories
    Windows
    Program Files
    Microsoft DirectX SDK (October 2006)
    Microsoft Platform SDK for Windows Server 2003 R2.

    I could just write all this common code over but why should I have to


    It would be great if this would work


    We frequently see posts where people are having problems with linking their C++ DirectX applications. Here are some recommended steps to avoid problems:

    1) Use the latest DirectX SDK. If you're not using the latest one, please be sure to say what version you're using in your post.

    2) Use the latest Platform SDK.

    3) Make sure you have references properly set up in Visual Studio (or VC++ Express)

    Select Tools-> Options->Projects and Solutions-> VC++ Diretories

    • In the "Show directories for:" dropdown, pick "Include files"
    • You will see a list of directories there. Verify that "$(DXSDK_DIR)include" is in the list. If not, add it (click on the little "Folder" icon to add a new entry)
    • Now, in the "Show directories for:" dropdown, pick "Library files"
    • You will see a list of directories there. Verify that "$(DXSDK_DIR)lib\x86" is in the list. If not, add it (click on the little "Folder" icon to add a new entry)

    In some rare cases you might encounter fatal linker errors (CVT1100 and LNK1123). If you get these messages, remove the .manifest and .rc files from your "Resource Files" project directory and try again.




    Problem is the "VC++ Diretories" does not appear under my "Projects and Solutions" (Select Tools-> Options->Projects and Solutions).

    The only catagories there are "General" and "Build and Run," that is IT!


  • Alex95

    I just figured it out, I had the DX LIB files set up for x64 instead of x86. It's posible you did the same or similar. I'd check again to make sure

  • Bhaskar Sarma

    the solution for this you can find here: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

    Step 4: Update the corewin_express.vsprops file.

    One more step is needed to make the Win32 template work in Visual C++ Express. You need to edit the corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults) and

    Change the string that reads:

    AdditionalDependencies="kernel32.lib" to

    AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"

    I had the same issue and this helped. Everything builds as it should


  • Héctor

    Same for me; absolutely a ba-zillion linker errors! And no solution...

    I am getting BORED, LOL... :( :) :\

    None of the DirectX SDK example c++ solutions will link correctly.

    I have reinstalled all of these below - twice!
    DirectZ SDK
    2003 Platform SDK
    Visual Express C++

    I have deleted the CORRECT lib and include locations and then re-input them
    manually - still same thing:
    50 to 150 linker ERRORS.

    No matter what I do 50-150 linker errors for EVERY Direct SDK example. . .
    What good is this SDK anyway How could it not be set up right All the installs
    used the default names for directories
    Windows
    Program Files
    Microsoft DirectX SDK (October 2006)
    Microsoft Platform SDK for Windows Server 2003 R2.

    I could just write all this common code over but why should I have to

  • sreekanthr

    I'm having a similar error when I try to compile the CreateDevice sample. I gives my the following error

    Linking...

    1>CreateDevice.obj : error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "long __cdecl InitD3D(struct HWND__ *)" ( InitD3D@@YAJPAUHWND__@@@Z)

    1>Debug/CreateDevice.exe : fatal error LNK1120: 1 unresolved externals

    1>Build log was saved at "file://c:\Documents and Settings\Steven\My Documents\Visual Studio Projects\CreateDevice\Debug\BuildLog.htm"

    1>CreateDevice - 2 error(s), 0 warning(s)

    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    I did everything I could find to get it to work includeing getting the platform SDK, I also did all the changes to my compiler.

    I use Visual C++ 2005 Express, I downloaded it a month ago, posibly more



  • Jonathan Aneja - MSFT

    I managed to find that file in my Platform SDK folder.

    Given you're using the EE, have you installed and configured the platform SDK I'm using the VS2005-Pro which includes it, but as I understand it, the EE doesn't include it in the default download.

    Download it from here

    hth
    Jack



  • vc++ 2005 express want to build dxsdk sample usp10.h missing