我如何在vc ++.net中使用本机vc ++类 [英] how can i use native vc++ classes in vc++.net

查看:149
本文介绍了我如何在vc ++.net中使用本机vc ++类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用vc ++.net应用程序中以前创建的vc ++类.是否可以使用.net框架中的旧类.
如果是,那么如何.
请告诉我....

i m trying to use my previously created vc++ classes from vc++.net application. Is it possible to use the old classes in .net framework.
If yes then How.
please tell me....

推荐答案

是的,您只需使用它们即可.您添加了一些东西使C ++/CLI正常工作,但是C ++/CLI几乎是无用的,老实说,它存在的主要原因是它与c ++并存而没有麻烦.如果您的代码无法构建,则意味着您曾经使用过VC6,并且从不费心遵循标准的C ++,但是,您的C ++代码仍然可以正常工作,您不需要使用.NET,并且如果您选择可以,没有任何麻烦.
Yes, you just use them. You add stuff to make C++/CLI work, but C++/CLI is close to useless, to be honest, it''s main reason to exist is that it co-exists with c++ with no hassles. If your code will not build, that means you used to use VC6, and you never bothered to stick to standard C++, but, your C++ code continues to work fine, you don''t NEED to use .NET, and if you choose to, you can, without any hassles.


这篇关于我如何在vc ++.net中使用本机vc ++类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆