I am trying to load a plugin that allows an item exchange without having to open up bags or inventory windows. I have followed the instructions on how to make a new plugin using code from a forum. I added all the files that were created from the mkplugin executable to the mq2main section of the project. I coppied the code on the forum replacing all of the default code that is in the mq2exchangeitem.cpp file. Everything compiles fine, but It wont link and gives the following error which, not being a programmer, I have no idea what it means or how to fix it.
Linking...
MQ2Exchangeitem.obj : error LNK2005: _DllMain@12 already defined in MQ2Main.obj
LINK : fatal error LNK1104: cannot open file "MQ2Main.lib"
Error executing link.exe.
MQ2Main.dll - 2 error(s), 0 warning(s)
And i may be wrong but I also added a line to the eqgame.h file because of the posts instructions:
in eqgame-private.h:
Code:
#define CInvSlotMgr__UpdateSlots 0x004FA784
What am I doing wrong?