Original Post by: spoulin Thu Jan 28 15:28:39 2010
Hi,
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?
Thanks,
Steven
1 Comment
C
Craig
said Thursday, Nov 17, 2016
Original Post by: spoulin Thu Jan 28 16:22:12 2010
Figured it out! I forgot the mgInit and mgExit function.
Craig
Hi,
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?
Thanks,
Steven