?
Solved

Using ADO.NET with exisitng MFC Application

Posted on 2005-03-21
5
Medium Priority
?
213 Views
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::

Hari
Abbott labs
0
Comment
Question by:pphari
  • 2
2 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 1000 total points
ID: 13598515
You can find all required information in this book:
http://www.amazon.com/exec/obidos/ASIN/032117352X/104-0438383-1047158

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:
http://www.codeguru.com/Cpp/Cpp/cpp_managed/general/article.php/c4287/

You can read other articles of Tom Archer about .NET and MFC:
http://www.codeguru.com/member.php/8071/
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 16293051
I think my answer is OK.
0

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