Page 1 of 1

Fails to compile

Posted: Sun Jul 15, 2007 6:12 pm
by jacensolo
Here's the error message I'm getting:

Code: Select all

1>.\ISXEQ\ISXEQ.cpp(455) : error C2039: 'OriginalData' : is not a member of 'MemProtect'
1>        c:\program files\isxdk\include\Services.h(256) : see declaration of 'MemProtect'
And here's the bit of code in question:

Code: Select all

void __cdecl ProtectionRequest(ISXInterface *pClient, unsigned int MSG, void *lpData)
{
   switch(MSG)
   {
   case MEMPROTECT_PROTECT:
#define pData ((MemProtect*)lpData)
	   [color=blue]pData->Success=pExtension->Protect(pData->Address,pData->Length,pData->OriginalData);[/color]
//	   printf("Protection: %X for %d length, success=%d",pData->Address,pData->Length,pData->Success);
#undef pData
	   break;
   case MEMPROTECT_UNPROTECT:
		pExtension->UnProtect((unsigned int)lpData);
	   break;
   }
}
Any suggestions?

Posted: Sun Jul 15, 2007 7:12 pm
by selu989
Upgrade your ISXDK to 30c to fix that error.

Posted: Sun Jul 15, 2007 8:03 pm
by jacensolo
Downloaded. It works great now! Thanks.

Re: Fails to compile

Posted: Sun Jan 11, 2026 10:21 pm
by xyilla

Re: Fails to compile

Posted: Sun Jan 11, 2026 10:22 pm
by xyilla

Re: Fails to compile

Posted: Sun Jan 11, 2026 10:23 pm
by xyilla

Re: Fails to compile

Posted: Sun Jan 11, 2026 10:24 pm
by xyilla

Re: Fails to compile

Posted: Sun Jan 11, 2026 10:26 pm
by xyilla