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++ / May 2004

Tip: Looking for answers? Try searching our database.

Managed c++ vs Unmanaged c++

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
xyu3 - 31 May 2004 04:20 GMT
Hello,

I'm new to dotnet.

I want to write an app that's communication with a sql server 7
database via ADO.NET. This app need to have fast and stable
throughput. I know that the database access itself will not be the
bottle neck.

The Question is whether i should use Manage c++/C# or Unmanaged C++ to
do it?

If I use Unmanaged c++, what sort of API should I use? for example MFC
or Win32 API or some other Wrappers?

Thanks a lot!
Jesse McGrew - 31 May 2004 12:09 GMT
> Hello,
>
[quoted text clipped - 10 lines]
> If I use Unmanaged c++, what sort of API should I use? for example MFC
> or Win32 API or some other Wrappers?

I suggest sticking to Managed C++. The overhead of switching back and
forth between managed and unmanaged code every time you access the
database will probably outweigh any gains you'd get from using unmanaged
code in the first place.

IMO, you should only use unmanaged code if you have a relatively long,
CPU intensive task that won't require any communication with the managed
parts of your program. For anything less, it isn't worth the context switch.

Jesse

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.