Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2005

Tip: Looking for answers? Try searching our database.

Using ADO.NET with exisitng MFC Application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hari - 21 Mar 2005 20:51 GMT
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
Tommy Vercetti - 22 Mar 2005 21:51 GMT
I'm in a very similar boat. Short answer: There isn't a better route
than the two you are familiar with.

You can either:

A) Stick with regular C++ and regular ADO (which isn't as easy, clean,
or as fast as ADO.NET but isn't horrible either)

B) Convert to Managed C++ and use ADO.NET. However, as you've noticed,
the Managed C++ route is buggy and filled with all kinds of obscure,
bizarre, hard to resolved problems.

> Hi Friends,
>
[quoted text clipped - 27 lines]
> Hari
> Abbott labs

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.