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
  • 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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…

621 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