I don’t want to be bothered by VMProtect when I am just debugging my code so I put a res = 0 surrounded by
#ifdef _DEBUG / #endif preprocessor conditions. It it dangerous to have this code in the exe in the wild?
I have put it inside the protected code area using a marker.
char serial = read_serial((char)“c:\serial.txt”);
int res = VMProtectSetSerialNumber(serial);
delete serial;
VMProtectBegin(“Create”);
#ifdef _DEBUG
res = 0;
#endif
if (res)
{
…
Thanks in advance
:Ron