Using ADO.NET with exisitng MFC Application

Posted on 2005-03-21
Medium Priority
Last Modified: 2013-11-25
Hi Friends,

Please help me for make a solution for the following problem :

- I would like to use SQL server 2000 with my exisitng MFC based data acquision/presentation application. I prefer to use the ADO.NET as the interface (with new its nice design and features).

As an experimental purpose i just compiled MFC application with /clr switch. (planning to add ADO.NET connectivity code). Is it a good way to proceed this way?

The code compiled "fine" but doesn't run (but it took 5times more than the actual compilation time. )

It breaks most the calls with toolbars classes (giving a typeloadException error).

Is there any better way I could approach to solve this problem ?(using ADO.NET with MFC application)

Can i try to build the ado.net interfaces in a DLL and connect to the MFC application (without compiling with /clr )??

Looking for some inputs::

Abbott labs
Question by:pphari
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 48

Accepted Solution

AlexFM earned 1000 total points
ID: 13598515
You can find all required information in this book:

It contains a lot of working samples - ADO .NET, XML, Regular Expressions etc. running from MFC applications. The following article is fragment of this book:

You can read other articles of Tom Archer about .NET and MFC:
LVL 48

Expert Comment

ID: 16293051
I think my answer is OK.

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question