• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
张纯睿
博客园    首页    新随笔    联系   管理    订阅  订阅

C++/CLR中使用c#类库 使用MFC类库

 C++/CLR中使用c#类库
  将  using System.IO;
  改为using namespace System::IO;即可
  http://topic.csdn.net/u/20090213/10/9a82e721-8d1c-4c9e-a272-7dd6c0eb0b59.html


 C++/CLR 使用MFC
#include <afx.h>
#include <afxwin.h>
#include <atlsecurity.h>
#using <mscorlib.dll>
#import <msxml6.dll> // raw_interfaces_only,named_guids
using namespace MSXML2;
  然后rebuilder All
  注意顺序,#include <afx.h>一定要在前面,首先包含"window.h"文件

posted @ 2010-12-24 10:54  张纯睿  阅读(472)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3