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 2006

Tip: Looking for answers? Try searching our database.

files I need to distribute

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mike7411@gmail.com - 22 May 2006 18:31 GMT
Is there an easy way to tell which files I need to distribute with
my Microsoft Visual Studio 2005 MFC application?

I keep getting a vague message on my target computer saying
the application configuration is incorrect.
Arnaud Debaene - 22 May 2006 18:33 GMT
> Is there an easy way to tell which files I need to distribute with
> my Microsoft Visual Studio 2005 MFC application?
>
> I keep getting a vague message on my target computer saying
> the application configuration is incorrect.

Use Dependency Walker

Arnaud
MVP - VC
Bruno van Dooren - 22 May 2006 19:46 GMT
> Is there an easy way to tell which files I need to distribute with
> my Microsoft Visual Studio 2005 MFC application?
>
> I keep getting a vague message on my target computer saying
> the application configuration is incorrect.

You need to redistribute the runtime dlls and their manifest files.
this is something new in VS2005.

There is a good article on codeproject about this topic:
http://www.codeproject.com/cpp/vcredists_x86.asp

Another option is to use statice linkage to the CRT and MFC runtime.
that way you don't need to distribute dlls.

Signature

Kind regards,
   Bruno van Dooren
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"

Roman Ziak - 23 May 2006 02:33 GMT
>> Is there an easy way to tell which files I need to distribute with
>> my Microsoft Visual Studio 2005 MFC application?
[quoted text clipped - 10 lines]
> Another option is to use statice linkage to the CRT and MFC runtime.
> that way you don't need to distribute dlls.

Static linkage is not such a good idea since not only every DLL in the
project will have its own runtime and that will blow-up the application
size and memory needs, but every DLL will have its own memory manager,
which *may* lead to some hard-to find problems.
Bruno van Dooren - 23 May 2006 07:47 GMT
> Static linkage is not such a good idea since not only every DLL in the
> project will have its own runtime and that will blow-up the application
> size and memory needs,

Blow up is a bit drastic I think. It was the default for VC2003 release
builds.

>but every DLL will have its own memory manager,
> which *may* lead to some hard-to find problems.

Memory ownership should stay within module boundaries anyway.
if you allocate mem in a dll, it should be deleted in the dll.
not following this rule means that you can use a dll only with applications
that use the same CRT version.
result in that case:
- hard to find problems.
- you force all users to use the same compiler version.
- you force all users to use dynamic linkage.

Signature

Kind regards,
   Bruno van Dooren
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"


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.