Hello,
i was searching for a good D3D menu base and found this one.
Easy to edit, but when i build i got some errors.
i solved that by linking to DX9 summer 2004 Lib en Includes folder.
i als had to link to some other folders and i linked to DX... summer 2007.
and to microsoft SDK's, to the folder 6.0A and 6.1.
now i still get some errors:
Code:
1>------ Build started: Project: TatniumD3D, Configuration: Release Win32 ------
1>Compiling...
1>d3d8tex.cpp
1>d3d8int.cpp
1>d3d8dev.cpp
1>.\d3d8dev.cpp(461) : warning C4996: 'sprintf' was declared deprecated
1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(345) : see declaration of 'sprintf'
1> Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>.\d3d8dev.cpp(462) : warning C4996: 'sprintf' was declared deprecated
1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(345) : see declaration of 'sprintf'
1> Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>main.cpp
1>.\main.cpp(75) : warning C4996: 'strcpy' was declared deprecated
1> C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(73) : see declaration of 'strcpy'
1> Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>.\main.cpp(76) : warning C4996: 'strcat' was declared deprecated
1> C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(78) : see declaration of 'strcat'
1> Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>.\main.cpp(125) : warning C4996: '_vsnprintf' was declared deprecated
1> C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(339) : see declaration of '_vsnprintf'
1> Message: 'This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>d3d8.cpp
1>Generating Code...
1>Linking...
1>d3d8dev.obj : error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::RestoreDeviceObjects(void)" (?RestoreDeviceObjects@CD3DFont@@QAEJXZ) referenced in function "public: long __thiscall CD3DManager::Initialize(void)" (?Initialize@CD3DManager@@QAEJXZ)
1>d3d8dev.obj : error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice8 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice8@@@Z) referenced in function "public: long __thiscall CD3DManager::Initialize(void)" (?Initialize@CD3DManager@@QAEJXZ)
1>d3d8dev.obj : error LNK2019: unresolved external symbol "public: __thiscall CD3DFont::CD3DFont(char *,unsigned long,unsigned long)" (??0CD3DFont@@QAE@PADKK@Z) referenced in function "public: long __thiscall CD3DManager::Initialize(void)" (?Initialize@CD3DManager@@QAEJXZ)
1>d3d8dev.obj : error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::DeleteDeviceObjects(void)" (?DeleteDeviceObjects@CD3DFont@@QAEJXZ) referenced in function "public: long __thiscall CD3DManager::PreReset(void)" (?PreReset@CD3DManager@@QAEJXZ)
1>d3d8dev.obj : error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::InvalidateDeviceObjects(void)" (?InvalidateDeviceObjects@CD3DFont@@QAEJXZ) referenced in function "public: long __thiscall CD3DManager::PreReset(void)" (?PreReset@CD3DManager@@QAEJXZ)
1>d3d8dev.obj : error LNK2019: unresolved external symbol __imp__GetAsyncKeyState@4 referenced in function "public: virtual long __stdcall hkIDirect3DDevice8::EndScene(void)" (?EndScene@hkIDirect3DDevice8@@UAGJXZ)
1>d3d8dev.obj : error LNK2019: unresolved external symbol "public: long __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char *,unsigned long)" (?DrawTextA@CD3DFont@@QAEJMMKPADK@Z) referenced in function "public: virtual long __stdcall hkIDirect3DDevice8::EndScene(void)" (?EndScene@hkIDirect3DDevice8@@UAGJXZ)
1>d3dx8.lib(cd3dxresource.obj) : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "public: __thiscall CD3DXResource::~CD3DXResource(void)" (??1CD3DXResource@@QAE@XZ)
1>d3dx8.lib(cpudetect.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "int __cdecl GetD3DRegValue(unsigned long,char *,void *,unsigned long)" (?GetD3DRegValue@@YAHKPADPAXK@Z)
1>d3dx8.lib(cpudetect.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function "int __cdecl GetD3DRegValue(unsigned long,char *,void *,unsigned long)" (?GetD3DRegValue@@YAHKPADPAXK@Z)
1>d3dx8.lib(cpudetect.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyA@12 referenced in function "int __cdecl GetD3DRegValue(unsigned long,char *,void *,unsigned long)" (?GetD3DRegValue@@YAHKPADPAXK@Z)
1>.\Release/TatniumD3D.dll : fatal error LNK1120: 11 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\DiteQ\Bureaublad\D3D-Empty(original)\Release\BuildLog.htm"
1>TatniumD3D - 12 error(s), 5 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I cant find something about this and i'm using visual C++ 2005 and 2008 (both i get the same errors).