Frequently Asked Questions

MQ2

Frequently Asked Questions


Previous  Top 

Q: How do I access EQADDR_(something) in MQ2?
A: If you cant access what you used to use, it was replaced with something more suitable. For example, EQADDR_CLASSDISPLAYOBJECT was replaced with the variable ppDisplay. They are essentially the same thing. However, now we have defined pDisplay as (*ppDisplay). So instead of saying if (!EQADDR_CLASSDISPLAYOBJECT || !*EQADDR_CLASSDISPLAYOBJECT) return; You would now use if (!ppDisplay || !pDisplay) return;. You can also access the CDisplay class (the one from EQ) member functions directly by pDisplay->Function(blah);. However, unless the offset of the function is defined, attempting to compile will fail on the LINK step.

Q: I don't see class member functions with Visual Studio 6.0 when I type something like pDisplay-> ... what gives?
A: VS6 isn't calculating the #define on the fly. pDisplay is a #define of (*ppDisplay), so if you want to see the member functions start by using CDisplay:: or (*ppDisplay)-> to see the functions. Make sure to go to the Class view in the workspace window and click on the MQ2Main project. From there you can see all of the classes fill in.