ADO.NET和非托管C ++ [英] ADO.NET and unmanaged C++

查看:114
本文介绍了ADO.NET和非托管C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用OBDC连接到SQL Server数据库的应用程序.该应用程序是用Visual C ++编写的MFC应用程序.我被要求调查从OBDC迁移到ADO.NET的过程.是否有可用的文档描述这种类型的应用程序?如果遇到问题,我该怎么办?该应用程序是成千上万行代码,我希望这不是一个太麻烦的过程.谢谢.

I have an application that used OBDC to connect to a SQL Server database. The application is an MFC application written in Visual C++. I have been asked to investigate moving from OBDC to ADO.NET. Is there any documentation available that describes an application of this type? What types if issues might I encounter? The application is several hundreds of thousands of lines of code and I am hoping this is not too intrusive a process. Thanks.

推荐答案

Mojosound2007写道:
Mojosound2007 wrote:

OBDC



那到底是什么?是ODBC吗?

ADO.NET是使用SQL Server托管提供程序加载和保存数据的抽象层,应该用于托管代码中,但MFC库基于不受托管的UNmanaged C ++(C ++/CLI).因此,如果您以MFC为目标,则无需迁移到ADO.NET. :)



What on Earth is that?Is is ODBC?

ADO.NET is an abstraction layer which uses SQL server managed provider for loading and saving data.It''s supposed to be used in managed code but MFC library is based on UNmanaged C++ not managed (C++/CLI). So you don''t need to move to ADO.NET if you are targeting MFC. :)


这篇关于ADO.NET和非托管C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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