如何在VC ++代码中使用/混合.net类 [英] How to use/mix .net classes in VC++ code

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

问题描述



我想通过在VC ++中的较早项目中使用名称空间System.data.sqlclient来访问Sqlserver数据库.
如果可能的话,请让我知道如何使用示例.

谢谢

Hi,

I want to access Sqlserver Database by using namespaces System.data.sqlclient in my older project which is in VC++.
Please let me know how I can do so with examples if possible.

Thanks

推荐答案

将您的项目切换到托管C ++.您将在MSDN上找到有关如何在托管C ++中编写程序的有用信息.
Switch your project to managed C++ one. You will definitelly find useful information on MSDN how to write program in managed C++.


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

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