110,539
社区成员
发帖
与我相关
我的任务
分享
//c++ / cli
namespace CLITest
{
public ref class test1
{
};
public class test2
{
}
}
//c#工程里引用 c++/cli的工程
// c#
namespace CSuperTest
{
class M
{
// 因为test1是托管类,可以直接使用
test1 t1 = new test1();
// test2是非托管类,不能直接使用。怎么得到他的对象指针?
test2 *t2 ?
}
}