The MatriX
  • Welcome To Ghbsys
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site

Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

Sign in to follow this  
Hans211

D3D framework for D3D8 and D3D9

Recommended Posts

Perhaps install the DirectX SDK summer 2004, or set the path for includes and libraries in Tools -> Options -> Project and solutions -> VC++ directories

 

 

Can you teach me how to set up everything? Please add my Windows Live Messenger PM me please! I've set the path for includes and the libraries from the DirectX Sdk Summer 2004 but don't seem to get it right though :S

Edited by Tea Shatter

Share this post


Link to post
Share on other sites

I have directories, coding is set to Unicode. Nothing was changed.

c:\documents and settings\filip\pulpit\d3d\d3dfont9.cpp(50) : warning C4996: 'wcsncpy': This function or variable may be unsafe. Consider using wcsncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
	D:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(275) : see declaration of 'wcsncpy'
..\..\..\..\..\Pulpit\D3d\d3dbase.cpp(36) : error C2664: 'CD3DFont::CD3DFont(const TCHAR *,DWORD,DWORD)' : cannot convert parameter 1 from 'const char [6]' to 'const TCHAR *'
	Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
..\..\..\..\..\Pulpit\D3d\d3dbase.cpp(113) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR'
	Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
d3dmenu.cpp
main.h : Building for D3D9
..\..\..\..\..\Pulpit\D3d\d3dmenu.cpp(63) : error C2664: 'CD3DFont::DrawTextW' : cannot convert parameter 4 from 'char *' to 'const TCHAR *'
	Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
..\..\..\..\..\Pulpit\D3d\d3dmenu.cpp(68) : error C2664: 'CD3DFont::DrawTextW' : cannot convert parameter 4 from 'char *' to 'const TCHAR *'
	Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
..\..\..\..\..\Pulpit\D3d\d3dmenu.cpp(70) : error C2664: 'CD3DFont::DrawTextW' : cannot convert parameter 4 from 'char *' to 'const TCHAR *'
	Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
..\..\..\..\..\Pulpit\D3d\d3dmenu.cpp(82) : error C2664: 'CD3DFont::DrawTextW' : cannot convert parameter 4 from 'char *' to 'const TCHAR *'
	Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
..\..\..\..\..\Pulpit\D3d\d3dmenu.cpp(84) : error C2664: 'CD3DFont::DrawTextW' : cannot convert parameter 4 from 'char *' to 'const TCHAR *'
	Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

Share this post


Link to post
Share on other sites
I'm having a issue =/

 

 

1>TestMenu.obj : error LNK2019: symbole externe non résolu "public: long __thiscall CD3DFont::DeleteDeviceObjects(void)" ([email protected]@@QAEJXZ) référencé dans la fonction "void __cdecl PreReset(struct IDirect3DDevice9 *)" ([email protected]@[email protected]@@Z)
1>TestMenu.obj : error LNK2019: symbole externe non résolu "public: long __thiscall CD3DFont::InvalidateDeviceObjects(void)" ([email protected]@@QAEJXZ) référencé dans la fonction "void __cdecl PreReset(struct IDirect3DDevice9 *)" ([email protected]@[email protected]@@Z)
1>TestMenu.obj : error LNK2019: symbole externe non résolu "public: long __thiscall CD3DFont::RestoreDeviceObjects(void)" ([email protected]@@QAEJXZ) référencé dans la fonction "void __cdecl PostReset(struct IDirect3DDevice9 *)" ([email protected]@[email protected]@@Z)
1>TestMenu.obj : error LNK2019: symbole externe non résolu "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" ([email protected]@@[email protected]@@Z) référencé dans la fonction "void __cdecl PostReset(struct IDirect3DDevice9 *)" ([email protected]@[email protected]@@Z)
1>TestMenu.obj : error LNK2019: symbole externe non résolu "public: __thiscall CD3DFont::CD3DFont(char const *,unsigned long,unsigned long)" ([email protected]@[email protected]@Z) référencé dans la fonction "void __cdecl PostReset(struct IDirect3DDevice9 *)" ([email protected]@[email protected]@@Z)
1>TestMenu.obj : error LNK2019: symbole externe non résolu "public: long __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char const *,unsigned long)" ([email protected]@@[email protected]) référencé dans la fonction "public: void __thiscall D3DMenu::Show(class CD3DFont *)" ([email protected]@@[email protected]@@Z)

 

Please help >_<

 

Thank you.

 

Don't include font files. Please read all post before reply.

 

I have directories, coding is set to Unicode. Nothing was changed.

c:\documents and settings\filip\pulpit\d3d\d3dfont9.cpp(50) : warning C4996: 'wcsncpy': This function or variable may be unsafe. Consider using wcsncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
	  D:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(275) : see declaration of 'wcsncpy'
 ..\..\..\..\..\Pulpit\D3d\d3dbase.cpp(36) : error C2664: 'CD3DFont::CD3DFont(const TCHAR *,DWORD,DWORD)' : cannot convert parameter 1 from 'const char [6]' to 'const TCHAR *'
	  Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
 ..\..\..\..\..\Pulpit\D3d\d3dbase.cpp(113) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR'
	  Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
 d3dmenu.cpp
 main.h : Building for D3D9
 ..\..\..\..\..\Pulpit\D3d\d3dmenu.cpp(63) : error C2664: 'CD3DFont::DrawTextW' : cannot convert parameter 4 from 'char *' to 'const TCHAR *'
	  Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
 ..\..\..\..\..\Pulpit\D3d\d3dmenu.cpp(68) : error C2664: 'CD3DFont::DrawTextW' : cannot convert parameter 4 from 'char *' to 'const TCHAR *'
	  Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
 ..\..\..\..\..\Pulpit\D3d\d3dmenu.cpp(70) : error C2664: 'CD3DFont::DrawTextW' : cannot convert parameter 4 from 'char *' to 'const TCHAR *'
	  Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
 ..\..\..\..\..\Pulpit\D3d\d3dmenu.cpp(82) : error C2664: 'CD3DFont::DrawTextW' : cannot convert parameter 4 from 'char *' to 'const TCHAR *'
	  Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
 ..\..\..\..\..\Pulpit\D3d\d3dmenu.cpp(84) : error C2664: 'CD3DFont::DrawTextW' : cannot convert parameter 4 from 'char *' to 'const TCHAR *'
	  Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

 

Go in Project-> Properties -> Configuration Properties - > Character Set = Use Multi-Byte character set.

Edited by Im V!rus

Share this post


Link to post
Share on other sites
Don't include font files. Please read all post before reply.

 

 

 

Go in Project-> Properties -> Configuration Properties - > Character Set = Use Multi-Byte character set.

It didn't help O.o

Share this post


Link to post
Share on other sites
Don't include font files. Please read all post before reply.

 

Go in Project-> Properties -> Configuration Properties - > Character Set = Use Multi-Byte character set.

For Visual c++ 2008 (or newer):

 

You can add these in the d3dbase.h (before the D3D8 and D3D9 selection)

#define _CRT_SECURE_NO_DEPRECATE

#define _CRT_NONSTDC_NO_DEPRECATE

This will reduce all kind of useless warnings/errors, because MS thinks it knows better than a real programmer...

 

 

Don't use multi-Byte character set !

 

Go in Project-> Properties -> Configuration Properties - > General -> Character Set = Not Set

 

also :

Go in Project-> Properties -> Configuration Properties - > C/C++ ->

- code generation -> runtime library = Multi-threaded DLL (/MD)

- Precompiled Headers -> Create/Use Precompiled headers = Not using precompiled Headers

 

 

.

Share this post


Link to post
Share on other sites

Microsoft Visual Studio 2008 does not seem to have the C/C++ option and I cannot find the Multi-threaded DLL /MD anywhere else. Is there a way to put /MD into the compiler paramaters or am i doing something wrong? O.o

Share this post


Link to post
Share on other sites
For Visual c++ 2008 (or newer):

 

You can add these in the d3dbase.h (before the D3D8 and D3D9 selection)

#define _CRT_SECURE_NO_DEPRECATE

#define _CRT_NONSTDC_NO_DEPRECATE

This will reduce all kind of useless warnings/errors, because MS thinks it knows better than a real programmer...

 

 

Don't use multi-Byte character set !

 

Go in Project-> Properties -> Configuration Properties - > General -> Character Set = Not Set

 

also :

Go in Project-> Properties -> Configuration Properties - > C/C++ ->

- code generation -> runtime library = Multi-threaded DLL (/MD)

- Precompiled Headers -> Create/Use Precompiled headers = Not using precompiled Headers

 

 

.

 

Its seems that nothing can help ;/ I tried this with hope it will help but i failed to it.

I have downloaded Direct SDK 2009 March and it done nothing.

Edited by Mystery

Share this post


Link to post
Share on other sites

Sorry for double post first

I have downloaded Visual C++ 2005 and i'm still fighting with this

extern CD3DFont	*pFont;

Because i'm getting errors LNK2019. Is it possible to simple change it, that there won't be errors "unresolved external symbol __imp__" ?

Thanks.

Share this post


Link to post
Share on other sites

Please help!

 

1>------ Build started: Project: uniicron, Configuration: Debug Win32 ------
1>Compiling...
1>d3dbase.cpp
1>c:\users\uniicron\desktop\d3dbase\d3dbase.h(30) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
1>d3dmenu.cpp
1>c:\users\uniicron\desktop\d3dbase\d3dbase.h(30) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
1>hackbase.cpp
1>c:\users\uniicron\desktop\d3dbase\d3dbase.h(30) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
1>Generating Code...
1>Build log was saved at "file://c:\Users\uniicron\Documents\Visual Studio 2008\Projects\uniicron\uniicron\Debug\BuildLog.htm"
1>uniicron - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

I GET THIS ERROR, MY HACK IS DONE, I ONLY HAVE PROBLEMS WITH THIS MENU!

Share this post


Link to post
Share on other sites
Please help!

 

1>------ Build started: Project: uniicron, Configuration: Debug Win32 ------
1>Compiling...
1>d3dbase.cpp
1>c:\users\uniicron\desktop\d3dbase\d3dbase.h(30) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
1>d3dmenu.cpp
1>c:\users\uniicron\desktop\d3dbase\d3dbase.h(30) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
1>hackbase.cpp
1>c:\users\uniicron\desktop\d3dbase\d3dbase.h(30) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
1>Generating Code...
1>Build log was saved at "file://c:\Users\uniicron\Documents\Visual Studio 2008\Projects\uniicron\uniicron\Debug\BuildLog.htm"
1>uniicron - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

I GET THIS ERROR, MY HACK IS DONE, I ONLY HAVE PROBLEMS WITH THIS MENU!

Missing file, someone know what i need to put into d3d8.h ?

Share this post


Link to post
Share on other sites
Missing file, someone know what i need to put into d3d8.h ?

You must include the directx sdk directory in your include and libraries path, otherwise VC cannot find them.

I don't have vc2008 but it should be somewhere like

 

Tools -> Options, then to Projects and Solutions -> VC++ Directories.

 

Add the following lines:

Include files:

* C:\Program Files\Microsoft DirectX SDK\Include

 

Library files:

 

* C:\Program Files\Microsoft DirectX SDK\Lib\x86

 

Of course you need to specify the correct location of the files.....

Share this post


Link to post
Share on other sites
You must include the directx sdk directory in your include and libraries path, otherwise VC cannot find them.

I don't have vc2008 but it should be somewhere like

 

Tools -> Options, then to Projects and Solutions -> VC++ Directories.

 

Add the following lines:

Include files:

* C:\Program Files\Microsoft DirectX SDK\Include

 

Library files:

 

* C:\Program Files\Microsoft DirectX SDK\Lib\x86

 

Of course you need to specify the correct location of the files.....

 

When i enter a map in Combat arms it Debugcrashes...

Share this post


Link to post
Share on other sites

LINK : error LNK2001: unresolved external symbol [email protected]
c:\documents and settings\jochem\mijn documenten\visual studio 2010\Projects\testtttttttttttt\Debug\testtttttttttttt.dll : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

Any solutions? :L

I've only changed the options below.

And YES i've added the int..

int CH_options = 0;

and YES i've added the menu name.

pMenu->AddGroup("[options]", &CH_options , opt_Grp);

>.<

Share this post


Link to post
Share on other sites
This is a complete D3D framework containing:

- D3D Base, all basic stuff, hooks, font manipulation

- D3D Menu with folders

- Transparent Background function

- Optimized D3Dfont, centered and right aligned text,

- Code works for d3d8 or d3d9 (define it in d3dbase.h)

- test programs for d3d8 and d3d9

- All within a 9.5 kb dll

 

Used existing code parts for the framework from:

- Azorbix: DetourFunc

- Dominik or Patrick: FindPattern

- Gordon : device pointer signature

- Microsoft: Fonts

 

e0svgk.jpg

 

The zip file contains:

- all source files

- d3d8 and d3d9 prebuild dll

- d3d8 and d3d9 test program

- dll injector

 

To build a new version :

- create an empty c++ project for a multithreaded dll

- make sure your c++ finds the directx sdk files

- add the files: d3dbase.*, d3dmenu.* and hackbase.cpp

- DON'T include the d3dfont files in your project !!

- edit the d3dbase.h and select for which version

- build it

 

Have fun !

 

D3Dbase.zip

 

 

Sir,.. help...

 

i'm having problem with this

--------------------Configuration: ttz - Win32 Debug--------------------

Compiling...

d3dbase.cpp

c:\program files\microsoft visual studio\vc98\include\tchar.h(29) : error C2144: syntax error : missing ';' before type 'int'

c:\program files\microsoft visual studio\vc98\include\tchar.h(29) : error C2501: 'z' : missing storage-class or type specifiers

c:\program files\microsoft visual studio\vc98\include\tchar.h(29) : fatal error C1004: unexpected end of file found

d3dmenu.cpp

c:\program files\microsoft visual studio\vc98\include\tchar.h(29) : error C2144: syntax error : missing ';' before type 'int'

c:\program files\microsoft visual studio\vc98\include\tchar.h(29) : error C2501: 'z' : missing storage-class or type specifiers

c:\program files\microsoft visual studio\vc98\include\tchar.h(29) : fatal error C1004: unexpected end of file found

hackbase.cpp

c:\program files\microsoft visual studio\vc98\include\tchar.h(29) : error C2144: syntax error : missing ';' before type 'int'

c:\program files\microsoft visual studio\vc98\include\tchar.h(29) : error C2501: 'z' : missing storage-class or type specifiers

c:\program files\microsoft visual studio\vc98\include\tchar.h(29) : fatal error C1004: unexpected end of file found

Error executing cl.exe.

 

ttz.dll - 9 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites

HELP!!!!!!!!!!!!

1>------ Build started: Project: dave's Soldier Front D3D Hack, Configuration: Debug Win32 ------
1>  d3dfont9.cpp
1>c:\users\nieuw\desktop\d3d coding & source codes\d3dbase (hans211)\d3dfont9.cpp(13): fatal error C1083: Cannot open include file: 'D3D8.h': No such file or directory
1>  d3dbase.cpp
1>  main.h : Building for D3D9
1>c:\users\nieuw\desktop\d3d coding & source codes\d3dbase (hans211)\d3dfont9.cpp(13): fatal error C1083: Cannot open include file: 'D3D8.h': No such file or directory
1>  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

i tryed everything, i have d3dfont9.cpp & i looked @ the other errors

of other people, but in your pack isn't a D3D8.h file i think you forgotten to

put it in the pack... i have newest Direct X + summer sdk 2004..

please give me the D3D8 File....

 

BTW, are u dutch? O.o

Edited by .:: dAvE ::.

Share this post


Link to post
Share on other sites
HELP!!!!!!!!!!!!

1>------ Build started: Project: dave's Soldier Front D3D Hack, Configuration: Debug Win32 ------
1>  d3dfont9.cpp
1>c:\users\nieuw\desktop\d3d coding & source codes\d3dbase (hans211)\d3dfont9.cpp(13): fatal error C1083: Cannot open include file: 'D3D8.h': No such file or directory
1>  d3dbase.cpp
1>  main.h : Building for D3D9
1>c:\users\nieuw\desktop\d3d coding & source codes\d3dbase (hans211)\d3dfont9.cpp(13): fatal error C1083: Cannot open include file: 'D3D8.h': No such file or directory
1>  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

i tryed everything, i have d3dfont9.cpp & i looked @ the other errors

of other people, but in your pack isn't a D3D8.h file i think you forgotten to

put it in the pack... i have newest Direct X + summer sdk 2004..

please give me the D3D8 File....

 

BTW, are u dutch? O.o

The d3d8.h should be in your directx sdk directory.

You must include the directx sdk directory in your include and libraries path, otherwise VC cannot find them.

I don't have vc2008 but it should be somewhere like

Tools -> Options, then to Projects and Solutions -> VC++ Directories.

Add the following lines:

Include files:

* C:\Program Files\Microsoft DirectX SDK\Include

Library files:

* C:\Program Files\Microsoft DirectX SDK\Lib\x86

Of course you need to specify the correct location of the files.....

 

Yes I am dutch...

succes ermee..

Share this post


Link to post
Share on other sites

------ Erstellen gestartet: Projekt: menu, Konfiguration: Debug Win32 ------
Kompilieren...
d3dmenu.cpp
main.h : Building for D3D9
c:\dokumente und einstellungen\jens\eigene dateien\neuer ordner\d3dmenu.cpp(63) : error C2664: 'CD3DFont::DrawTextW': Konvertierung des Parameters 4 von 'char *' in 'const TCHAR *' nicht möglich
	Die Typen, auf die verwiesen wird, sind nicht verknüpft; die Konvertierung erfordert einen reinterpret_cast-Operator oder eine Typumwandlung im C- oder Funktionsformat.
c:\dokumente und einstellungen\jens\eigene dateien\neuer ordner\d3dmenu.cpp(68) : error C2664: 'CD3DFont::DrawTextW': Konvertierung des Parameters 4 von 'char *' in 'const TCHAR *' nicht möglich
	Die Typen, auf die verwiesen wird, sind nicht verknüpft; die Konvertierung erfordert einen reinterpret_cast-Operator oder eine Typumwandlung im C- oder Funktionsformat.
c:\dokumente und einstellungen\jens\eigene dateien\neuer ordner\d3dmenu.cpp(70) : error C2664: 'CD3DFont::DrawTextW': Konvertierung des Parameters 4 von 'char *' in 'const TCHAR *' nicht möglich
	Die Typen, auf die verwiesen wird, sind nicht verknüpft; die Konvertierung erfordert einen reinterpret_cast-Operator oder eine Typumwandlung im C- oder Funktionsformat.
c:\dokumente und einstellungen\jens\eigene dateien\neuer ordner\d3dmenu.cpp(82) : error C2664: 'CD3DFont::DrawTextW': Konvertierung des Parameters 4 von 'char *' in 'const TCHAR *' nicht möglich
	Die Typen, auf die verwiesen wird, sind nicht verknüpft; die Konvertierung erfordert einen reinterpret_cast-Operator oder eine Typumwandlung im C- oder Funktionsformat.
c:\dokumente und einstellungen\jens\eigene dateien\neuer ordner\d3dmenu.cpp(84) : error C2664: 'CD3DFont::DrawTextW': Konvertierung des Parameters 4 von 'char *' in 'const TCHAR *' nicht möglich
	Die Typen, auf die verwiesen wird, sind nicht verknüpft; die Konvertierung erfordert einen reinterpret_cast-Operator oder eine Typumwandlung im C- oder Funktionsformat.
Das Buildprotokoll wurde unter "file://c:\Dokumente und Einstellungen\jens\Eigene Dateien\Visual Studio 2008\Projects\menu\menu\Debug\BuildLog.htm" gespeichert.
menu - 5 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========

 

 

 

can someone help me???

Share this post


Link to post
Share on other sites
The d3d8.h should be in your directx sdk directory.

You must include the directx sdk directory in your include and libraries path, otherwise VC cannot find them.

I don't have vc2008 but it should be somewhere like

Tools -> Options, then to Projects and Solutions -> VC++ Directories.

Add the following lines:

Include files:

* C:\Program Files\Microsoft DirectX SDK\Include

Library files:

* C:\Program Files\Microsoft DirectX SDK\Lib\x86

Of course you need to specify the correct location of the files.....

 

Yes I am dutch...

succes ermee..

 

Bedankt man;)

ikga 't gelijk testen:D

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  

  • Recently Browsing   0 members

    No registered users viewing this page.