Boost logo

Boost Users :

Subject: Re: [Boost-users] wrap native C++ DLL used Boost libs, into .NET
From: Boris (boriss_at_[hidden])
Date: 2008-09-05 15:51:09


On Fri, 05 Sep 2008 08:47:08 +0200, <aidforsoft_at_[hidden]> wrote:

Hi Ilya,

> [...]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.

Boris


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