From: Nick D. <nde...@gm...> - 2010-03-05 18:53:10
|
On Thu, Mar 4, 2010 at 8:13 PM, Bob Rossi <bo...@br...> wrote: > On Thu, Mar 04, 2010 at 06:07:59PM -0500, Nick Deubert wrote: >> Hello, >> I've read this page http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs and >> got a mingw main c++ file to link and run fine with a unmanaged c++ >> dll. However, now I need to do it with a managed C++ dll (see the >> commands I'm using below) Everything compiles and links fine but when >> I go to run it I get this every time (after having to copy msvcr90.dll >> and msvcm90.dll to my working directory): > > There are probably other, nicer alternatives, but I'd recommend > this: try linking to the normal DLL, and then have that DLL call > functions in your managed DLL. Maybe that'd work. That doesn't seem to work. It seems like when I compile the intermediate unmanaged c++ dll and include the lib file for the managed dll it seems to do the same thing to it that makes the managed dll incompatible. Does anyone have any other ideas? Could the way I export the symbols have anything to do with it? I saw on some other sites people used __stdcall but I tried inserting that and it had no effect. Thanks, Nick |