需要将#include <windows.h>放到using namespace System;前面。

#include <windows.h>
using namespace System;

参考:

https://bytes.com/topic/net/answers/668107-managed-lib-into-unmanaged-project

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2021-08-08
  • 2022-02-22
  • 2021-11-12
  • 2021-06-12
  • 2021-09-01
猜你喜欢
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2021-06-08
  • 2021-07-28
相关资源
相似解决方案