C++/CLI InteOP with Boost.thread
来源:互联网 发布:http请求没有返回数据 编辑:程序博客网 时间:2024/06/08 05:53
在.net调用C++/CLI 编写的InterOP程序时,如果这个InterOP程序中使用了Boost.thread,那么很可能出现下面的问题:
异常System.BadImageFormatException : is not a valid Win32 application
解决方案:
1. Use the DLL version of boost::threads with the following line before including any boost/thread files
#define BOOST_THREAD_USE_DLL
2. Sometimes the following could help:
#pragma unmanaged
#include <boost/thread.hpp>
#pragma managed
其中,1方法验证通过,2方法似乎无用。
- C++/CLI InteOP with Boost.thread
- BOOST THREAD
- boost-thread
- boost::thread
- Boost Thread
- boost - thread
- Boost Thread
- boost::thread
- boost::thread
- boost thread
- boost::thread
- boost::thread
- boost::thread
- boost::thread
- Boost.Thread
- Working with Configuration Files (app.config) in C++/CLI
- Working with Configuration Files (app.config) in C++/CLI
- How to sign C++/CLI assemblies with a strong name?
- 七个优秀的开源J2ME项目
- java中的Double为什么不能精确处理数据
- About_CSDN
- 一点一点学ASP.NET之基础概念——HttpModule
- 利用HttpModule集中处理身份检查
- C++/CLI InteOP with Boost.thread
- 如何以仅标题的形式显示blogger所有文章列表
- 有备无患:绕过 GHS 用自定义域名发布 Blogger
- C语言中switch语句的糟糕设计
- 用VC写能够导出类的DLL
- VC++下用MSComm控件实现串口通讯
- 从源代码看HashMap的加载因子和容量分配
- 中级程序员突破瓶颈,提高自己的一些建议
- 老紫竹JAVA提高教程(11)-认识Map