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"文件

原文地址:https://www.cnblogs.com/carl2380/p/1915726.html