非托管的vc工程中部分文件使用.Net Framwork
使用vs2005环 境 ,且工程不使用与编译头文件stdafx.h.(保证可以,不可以来找我!)
一,建立一般的c++的console32的project ,name: Test ,工程setting使用默认,不改变.如下: 原文地址

二,add header file: ManagedCppClass.h
一,建立一般的c++的console32的project ,name: Test ,工程setting使用默认,不改变.如下: 原文地址

二,add header file: ManagedCppClass.h








三,add cpp file: ManagedCppClass.cpp









四 main函数如下:









五,修改Managedcppclass.cpp文件的property setting,

next

六,compile->link->run ,it is ok!

next

六,compile->link->run ,it is ok!