|
From: Brian D. <br...@de...> - 2007-04-06 13:08:35
|
Chr...@in... wrote:
> > All interfaces must be 'extern "C"'.
>
> Hm, ok. So will it work when I implement a function like:
>
> extern "C" EXPORT Util *createUtil() {
> return new Util();
> }
>
> within the library? As I am in contact with the library developers this
> would be possible. Then I could also load the dll dynamically.
It would only work if the class is POD, and even then it might not due
to differences in packing, alignment, or layout. You really can't mix
C++ among different compilers.
Brian
|