D3D menu

01/15/2010 15:17 hawksblack#1
hi guy i need help to do a d3d menu in the game like GHR .its possible to add assembly code in c++?
01/15/2010 15:43 bottomy#2
Yep you can add inline assembly to your C++ code, depending on your compiler depends what type of inline assembly you use.

e.g. (this is C, not C++ there might be a different with how it's done not too sure :/)

If you're using Dev C++ you would do something like
Code:
__asm("fs/movl 0x30, %eax");
__asm("movb 0x0e(%eax), _Variable);
But if you are using VC++ you would do something like
Code:
__asm {
mov eax, dword ptr fs: [0x30]
mov Variable, byte ptr [eax+0e] 
}

I think i made mistakes above but anyways what compiler you use, you should search to see what kind of inline assembly you use with it. Also if you are going to attempt to use Direct3D API i and if you don't know it, well i suggest learning some of it before you start.
01/15/2010 16:18 hawksblack#3
ok thx bro!!! i know a base but im not a pro :S i will try to do that by myself i dont want post too many question like a noob xD
01/15/2010 20:26 ind3siszive#4
lol you could ask me on my forum XD, im getting it back up now