Redistributing of exe devloped using VC++ 6.0
-
Hi, Do we require .Net framework and MFC runtime to run the exe developed in VC++ 6.0 in the system where Visual studio or VC++ 6.0 is not installed. The exe is built using static linking (set in project setting). Thanks in advance
If you statically link to the MFC and C runtime libraries, then there's no need to redistribute anything (except if you are using third party dll's). And certainly not the .NET framework...
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++ -
If you statically link to the MFC and C runtime libraries, then there's no need to redistribute anything (except if you are using third party dll's). And certainly not the .NET framework...
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++ -
Thanks for the quick reply. One clarification by setting Use MFC static libraty in the General tab of project setting means both MFC and C runtime libraries are statically linked, am i correct?
shir_k wrote:
by setting Use MFC static libraty in the General tab of project setting means both MFC and C runtime libraries are statically linked, am i correct?
Nope. They are independent settings. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
shir_k wrote:
by setting Use MFC static libraty in the General tab of project setting means both MFC and C runtime libraries are statically linked, am i correct?
Nope. They are independent settings. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Select
_Project-name_->Properties
menu item, then (in the newly appeared window) select theConfiguration Properties->C/C++->Code Generation
node, finally select the Runtime Library
item of the list and set it choosing the proper value (for instanceMulti-threaded
instead ofMulti-threaded DLL
). :) BTW you may also choose to link with theDLL
and then use theMicrosoft Visual C++ Redistributable Package
(see, for instance, here [^]) to install the required copmponents on the target machine. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Select
_Project-name_->Properties
menu item, then (in the newly appeared window) select theConfiguration Properties->C/C++->Code Generation
node, finally select the Runtime Library
item of the list and set it choosing the proper value (for instanceMulti-threaded
instead ofMulti-threaded DLL
). :) BTW you may also choose to link with theDLL
and then use theMicrosoft Visual C++ Redistributable Package
(see, for instance, here [^]) to install the required copmponents on the target machine. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]The OP said he was using VC6 and the link to the redistributable that you gave was for VC2008. The VC2008 redist will not work with VC6. The VC6 redist was included in the VC6 SP5 and SP6. Alternately you can get the SP4 file here[^].
You may be right I may be crazy -- Billy Joel -- Within you lies the power for good - Use it!
-
The OP said he was using VC6 and the link to the redistributable that you gave was for VC2008. The VC2008 redist will not work with VC6. The VC6 redist was included in the VC6 SP5 and SP6. Alternately you can get the SP4 file here[^].
You may be right I may be crazy -- Billy Joel -- Within you lies the power for good - Use it!