Boost logo

Boost Users :

Subject: Re: [Boost-users] wrap native C++ DLL used Boost libs, into .NET
From: aidforsoft_at_[hidden]
Date: 2008-09-08 03:13:14


Hi Boris.

>> [...]I found same problems in Internet - impossible to wrap native DLLs,
>> used
>> Boost. All this problems were unsolved.
>> Such as:
>> http://objectmix.com/dotnet/121318-not-valid-win32-application-exception-hresult-0x800700c1.html

> as it turns out you are referring to a thread which I had started. Looking
> at that thread I think I solved the problem by moving #include
> <boost/thread/mutex.hpp> from a header file to a .cpp file (so the C++/CLI
> project which includes the header files of my native C++ project doesn't
> include this Boost header anymore). At least I can and do ship a .NET
> library built on top of a C++ DLL which uses Boost 1.34.1. I'm not sure if
> your problem is similar to mine but I could fix mine.

Thanks.
In my case, all Boost headers has located inside .cpp files only. So
the C++/CLI DLL doesn't include Boost headers, but I cann't solve the
problem of System.BadImageFormatException.

-- 
Best regards,
Ilya Chumakov                          mailto:aidforsoft_at_[hidden]

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net