将数据库编程从C#迁移到C ++ [英] Migrating data base programming from C# to C++

查看:94
本文介绍了将数据库编程从C#迁移到C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在C#中创建桌面数据库应用程序. C#通过提供DataGirdView控件,Datasets,DataAdaptars和ADO.Net库来促进数据库应用程序编程.但是C#应用程序存在速度问题.

我想知道是否可以像使用C#一样轻松地使用Visual C ++创建桌面数据库应用程序.

我会很感激的答复.

解决方案

irfankhan200写道:

我想知道我可以像使用C#一样轻松地使用Visual C ++创建桌面数据库应用程序.


IMO,如此并不容易.我想,更容易开发这类应用程序是引入C#的原因之一.
:)


带有MFC/ATL的Visual C ++允许您使用ADO(经典版本)和ODBC. 此处 [ 解决方案

I want to know can i use Visual C++ to create deskop database applications as easily as in C#.


Cannot be so easy, IMO. Easier development of such kind of applications is one of the reason of introducing C#, I suppose.
:)


Visual C++ with MFC/ATL allows you to use ADO (the classic version) and ODBC. Here[^] are some ADO samples.

If you are using Visual C++.NET then you can use the ADO.NET providers directly.


Have you profiled your C# code to see where it''s taking all it''s time? If it''s spending yonks in the database interface then it''s probably I/O bound and rewriting it in C++ probably won''t do you a lot of good.

Cheers,

Ash


这篇关于将数据库编程从C#迁移到C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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