Fails to compile
Posted: Sun Jul 15, 2007 6:12 pm
Here's the error message I'm getting:
And here's the bit of code in question:
Any suggestions?
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'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;
}
}