compiling error - 'CItemDisplayWnd__SetItem

Moderator: MacroQuest Developers

boxalot
orc pawn
orc pawn
Posts: 22
Joined: Sun Jun 14, 2009 12:26 am

compiling error - 'CItemDisplayWnd__SetItem

Post by boxalot » Wed Jul 15, 2009 10:49 pm

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.

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Post by SwiftyMUSE » Thu Jul 16, 2009 9:53 am

MQ2ItemDisplay.cpp was recently (7/3 ish) changed. I would assume there are changes to ISXEQItemDisplay.cpp needed now also.
PayPal: Donate to SwiftyMUSE
Bitcoin: 1LuQ6YcEAWxF3fm9yWMiro4K582je7364V
Krono: PM me

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

boxalot
orc pawn
orc pawn
Posts: 22
Joined: Sun Jun 14, 2009 12:26 am

Post by boxalot » Thu Jul 16, 2009 10:04 pm

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.