I'm trying to create an ATL component which listens for events from an application API (Trayport Global Vision) but it's throwing an exception. Note: I'm working in VC++ 6.0.
Info about the problem:
-----------------------------------
I can successfully create an instance of the Global Vision API with the line:
however when I try to connect to it to listen to events with the line:
hr = DispEventAdvise(m_pGV8Api,&DIID__IGlobalVision8APIEvents);
it throws an exception. I've commented out all of my catch(...) clauses so I could see what the exception is and it is 0xC0000005: Access Violation (GV8API.dll).
I'm not sure why it's throwing this exception, the gv8api.dll is in the working directory (of the code) and I include <gv8api.h> in the relevant classes.
Bookmarks