Help with adding ASM to C++

Posts 1–3 of 3 · Page 1 of 1
Help with adding ASM to C++
So I recently read that adding random noops or equivalent( mov edi,edi; add eax,0; ) throughout the code etc can help making vac-game hacks more secure.

Now my problem is Visual Studio won't allow me to do it.
I tried it with this code:

Code:
void test()
{
	
	asm (" nop");
	asm (" nop");
	asm (" nop");

}
And get following errors:

Error 1 error C2290: C++ 'asm' syntax ignored. Use __asm.

But when I use __asm instead I get the following error :

Error 2 error C2400: inline assembler syntax error in 'opcode'; found '('


Help appreciated
Thanks dude
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us