Page 1 of 1

compiling error - 'CItemDisplayWnd__SetItem

Posted: Wed Jul 15, 2009 10:49 pm
by boxalot
using mq2-2009090715a, I get the below error while trying to compile ISXEQ. The rest of it the extensions compile fine.

Code: Select all

Compiling...
ISXEQItemDisplay.cpp
EQLIB_IMPORTS
.\ISXEQItemDisplay.cpp(68) : error C2065: 'CItemDisplayWnd__SetItem' : undeclared identifier
.\ISXEQItemDisplay.cpp(68) : error C2039: 'SetItem_Detour' : is not a member of 'ItemDisplayHook'
        c:\compile-mq2\mq2-20070906\mq2itemdisplay\MQ2ItemDisplay.cpp(36) : see declaration of 'ItemDisplayHook'
.\ISXEQItemDisplay.cpp(68) : error C2065: 'SetItem_Detour' : undeclared identifier
.\ISXEQItemDisplay.cpp(68) : error C2039: 'SetItem_Trampoline' : is not a member of 'ItemDisplayHook'
        c:\compile-mq2\mq2-20070906\mq2itemdisplay\MQ2ItemDisplay.cpp(36) : see declaration of 'ItemDisplayHook'
.\ISXEQItemDisplay.cpp(68) : error C2065: 'SetItem_Trampoline' : undeclared identifier
.\ISXEQItemDisplay.cpp(79) : error C2065: 'CItemDisplayWnd__SetItem' : undeclared identifier
Is that an offset that needs to be defined in eqdata.h ? Not trying to be pushy or anything, just trying to learn.

Posted: Thu Jul 16, 2009 9:53 am
by SwiftyMUSE
MQ2ItemDisplay.cpp was recently (7/3 ish) changed. I would assume there are changes to ISXEQItemDisplay.cpp needed now also.

Posted: Thu Jul 16, 2009 10:04 pm
by boxalot
Found it. My diff output used the compare function of Textpad..

Code: Select all

Compare: (<)C:\compile-mq2\MQ2-20090716\MQ2ItemDisplay\ISXEQItemDisplay.cpp (6302 bytes)
   with: (>)C:\compile-mq2\compile-folder\MQ2ItemDisplay\ISXEQItemDisplay.cpp (6491 bytes)

68,70c68,71
<     EzDetour(CItemDisplayWnd__SetItem,&ItemDisplayHook::SetItem_Detour,&ItemDisplayHook::SetItem_Trampoline);
<     EzDetour(CItemDisplayWnd__SetSpell,&ItemDisplayHook::SetSpell_Detour,&ItemDisplayHook::SetSpell_Trampoline);
<     EzDetour(CXWnd__DrawTooltipAtPoint,&XWndHook::DrawTooltipAtPoint_Detour,&XWndHook::DrawTooltipAtPoint_Trampoline);
---
>     EzDetour(CItemDisplayWnd__SetSpell,&ItemDisplayHook::SetSpell_Detour,&ItemDisplayHook::SetSpell_Trampoline);
>     EzDetour(CItemDisplayWnd__UpdateStrings, &ItemDisplayHook::UpdateStrings_Detour, &ItemDisplayHook::UpdateStrings_Trampoline);
>     EzDetour(CXWnd__DrawTooltipAtPoint,&XWndHook::DrawTooltipAtPoint_Detour,&XWndHook::DrawTooltipAtPoint_Trampoline);
>     EzDetour(CInvSlotWnd__DrawTooltip, &InvSlotWndHook::DrawTooltip_Detour, &InvSlotWndHook::DrawTooltip_Trampoline);
79,81c80,83
<     RemoveDetour(CItemDisplayWnd__SetItem);
<     RemoveDetour(CItemDisplayWnd__SetSpell);
<     RemoveDetour(CXWnd__DrawTooltipAtPoint);
---
>     RemoveDetour(CItemDisplayWnd__SetSpell);
>     RemoveDetour(CItemDisplayWnd__UpdateStrings);
>     RemoveDetour(CXWnd__DrawTooltipAtPoint);
>     RemoveDetour(CInvSlotWnd__DrawTooltip);
155c157
<         hMemoryService=0; 
---
>         hMemoryService=0;

grrr, just noticed a new zip!!! Above is updated for today's zip.

Re: compiling error - 'CItemDisplayWnd__SetItem

Posted: Tue Jan 13, 2026 2:14 pm
by xyilla