Fails to compile

Moderator: MacroQuest Developers

jacensolo
a snow griffon
a snow griffon
Posts: 427
Joined: Wed Feb 14, 2007 8:51 am
Location: Right behind you

Fails to compile

Post by jacensolo » Sun Jul 15, 2007 6:12 pm

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?

selu989
orc pawn
orc pawn
Posts: 18
Joined: Wed Sep 15, 2004 1:55 pm

Post by selu989 » Sun Jul 15, 2007 7:12 pm

Upgrade your ISXDK to 30c to fix that error.

jacensolo
a snow griffon
a snow griffon
Posts: 427
Joined: Wed Feb 14, 2007 8:51 am
Location: Right behind you

Post by jacensolo » Sun Jul 15, 2007 8:03 pm

Downloaded. It works great now! Thanks.





xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: Fails to compile

Post by xyilla » Sun Jan 11, 2026 10:26 pm