IÃ¢â¬â¢m having problems with mgOpenDB. It keeps returning NULL. IÃ¢â¬â¢ve used it often before and it has always worked. I also tried another plugin that I made and the mgOpenDB works with the same input file. So, something tells me itÃ¢â¬â¢s my application setup thatÃ¢â¬â¢s the problem but I just canÃ¢â¬â¢t pinpoint where it is.
First, the plugin is a standalone executable. It is not run in Creator. Second, it is an MFC application and uses MFC in a shared DLL. Third, the main differences between the first app that is not working and the second one that is, are that IÃ¢â¬â¢m using precompile headers in the first and the runtime library is multi-threaded debug DLL instead of mutlti-thread debug. The other major difference is that it starts with a CWinApp InitInstance call rather than void main(). Finally, IÃ¢â¬â¢ve declared the plugin using mgDeclarePlugin at the top of the CWinApp cpp file.
So is there anything here that looks fishy or that seems incompatible with the API I should change?
Figured it out! I forgot the mgInit and mgExit function.
Move along :)