
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-hre...
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
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@mail.ru