|
From: George B. <sib...@ya...> - 2011-07-18 20:19:16
|
On 7/17/2011 2:57 PM, NightStrike wrote: > On Fri, Jul 15, 2011 at 10:31 AM, George Brink<sib...@ya...> wrote: >> On 7/15/2011 1:41 AM, Paul Steckler wrote: >>> Will that approach work with MSVC-compiled DLLs? Is the format of an MSVC >>> DLL the same a MinGW library created with the -shared flag? >> DLL format is defined by OS and does not depend on compiler or language. >> As long as you have the correct function signature - you would be fine. > > Really? What about c++ name mangling, and exception handling? > Yes, really. Name mangling comes from function/variable types and I said "Correct function signature", didn't I? Exception handling is a completely different matter. It depends on which CRLs were used to compile DLL and EXE. And in general exceptions should be restricted to inside DLL-only and EXE-only. Same problem as with memory management, by the way. But those problems do not depend on how you link EXE with DLL, you would have them in both cases. |