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++ / June 2007

Tip: Looking for answers? Try searching our database.

How can I choose the VC Runtime Library

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Qiang.Meng@gmail.com - 21 Jun 2007 10:23 GMT
I'm using Visual C++ 2005 to build a lib.

I found that there were 4 runtime libraries in the VC2005, /MD, /MT, /
MDd, /MTd. Which one should I choose to ensure that my library can be
used by all the other /MD or /MT programs?

Thanks a lot!
David Lowndes - 21 Jun 2007 12:30 GMT
>I'm using Visual C++ 2005 to build a lib.
>
>I found that there were 4 runtime libraries in the VC2005, /MD, /MT, /
>MDd, /MTd. Which one should I choose to ensure that my library can be
>used by all the other /MD or /MT programs?

It depends on what your library (I presume you mean it's a DLL)
interface uses.

If it relies on passing 'C' run-time/heap allocated parameters across
the DLL/EXE boundary, your only option is to use the DLL version of
the run-time. This will tie your users down to the same version of the
tools that you have. If your interface only passes plain old data
types, it doesn't particularly have a bearing - in which case I'd
probably use the static version unless I knew a close tie in with the
users of the library would always exist and they were shipping the DLL
run-time.

Dave

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.