I have a C ++ project, a C ++ \ Cli project, and a C # form creation project.
When I access the cli project from the win forms project, I can access and use the functions of the cli project. But when I include the cpp project header in the cli project, I get this runtime error from my C # project when I access the cli project.
CliWrapper.Func meta = new CliWrapper.Func();
This is the error I accepted:
BadImageFormatException: Failed to load file or assembly X or one of its dependencies. is not a Win32 application. (Exception from HRESULT: 0x800700C1)
I realized that #include <boost/thread.hpp>
is causing the problem
source share