Running a very simple Win32 app on a comp without VC++ 2005 ExpressHi!<br /> <br /> I have installed VC++ 2005 Express and the Platform SDK according to the instructions on MSDN:<br /> http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx<br /> Compiling and running the following program on the dev computer works like a charm:<br /> http://www.winprog.org/tutorial/simple_window.html<br /> <br /> I then changed to release-mode, turned off debugging in the project properties and copied the .exe to another computer without VC++ 2005 Express on. I pretty much expected problems, so I wasn't very surprised when I got the error message saying that there was something wrong with the program configuration, like the one here:<br /> http://forums.microsoft.com/msdn/showpost.aspx?postid=23371&amp;siteid=1<br /> <br /> I have since then combed this forum and eventually found a number of different posts containing instructions how to deploy correctly, examples of these are:<br /> http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=54317&amp;SiteID=1<br /> http://forums.microsoft.com/msdn/showpost.aspx?postid=75707&amp;siteid=1<br /> http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=156255&amp;SiteID=1<br /> I have also read about "Redistributing Visual C++ Files" on msdn:<br /> http://msdn2.microsoft.com/en-us/library/ms235299.aspx<br /> <br /> None(!) of these seems to do it for me, I suspect that this is mostly because the above examples does not deal with the Express-version, but I'm not sure.<br /> <br /> For someone pretty new to the VS-environment it is a nightmare, so far, to find out how to go about to deploy the applications correctly.<br /> <br /> Therefore, I would deeply appreciate it if someone could give a straight-up and complete guide on how to get this application (see the beginning of this post) to run on another computer (the one I have is running WinXP SP2, but if there's any difference in the approach when it's supposed to run on Win98-Win2K then please explain that as well). I know this is a lot to ask, but you will have my eternal thanks :).<br /> © 2009 Microsoft Corporation. All rights reserved.Thu, 02 Jul 2009 19:28:23 Z66bc8cab-c134-49a8-85e5-37ca9efbdeb4http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#66bc8cab-c134-49a8-85e5-37ca9efbdeb4http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#66bc8cab-c134-49a8-85e5-37ca9efbdeb4andreas_2http://social.msdn.microsoft.com/Profile/en-US/?user=andreas_2Running a very simple Win32 app on a comp without VC++ 2005 ExpressHi!<br /> <br /> I have installed VC++ 2005 Express and the Platform SDK according to the instructions on MSDN:<br /> http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx<br /> Compiling and running the following program on the dev computer works like a charm:<br /> http://www.winprog.org/tutorial/simple_window.html<br /> <br /> I then changed to release-mode, turned off debugging in the project properties and copied the .exe to another computer without VC++ 2005 Express on. I pretty much expected problems, so I wasn't very surprised when I got the error message saying that there was something wrong with the program configuration, like the one here:<br /> http://forums.microsoft.com/msdn/showpost.aspx?postid=23371&amp;siteid=1<br /> <br /> I have since then combed this forum and eventually found a number of different posts containing instructions how to deploy correctly, examples of these are:<br /> http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=54317&amp;SiteID=1<br /> http://forums.microsoft.com/msdn/showpost.aspx?postid=75707&amp;siteid=1<br /> http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=156255&amp;SiteID=1<br /> I have also read about "Redistributing Visual C++ Files" on msdn:<br /> http://msdn2.microsoft.com/en-us/library/ms235299.aspx<br /> <br /> None(!) of these seems to do it for me, I suspect that this is mostly because the above examples does not deal with the Express-version, but I'm not sure.<br /> <br /> For someone pretty new to the VS-environment it is a nightmare, so far, to find out how to go about to deploy the applications correctly.<br /> <br /> Therefore, I would deeply appreciate it if someone could give a straight-up and complete guide on how to get this application (see the beginning of this post) to run on another computer (the one I have is running WinXP SP2, but if there's any difference in the approach when it's supposed to run on Win98-Win2K then please explain that as well). I know this is a lot to ask, but you will have my eternal thanks :).<br /> Sat, 10 Dec 2005 21:13:09 Z2007-05-17T18:58:52Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#e723d991-f98b-4dfb-a59b-dcd3a2b843a1http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#e723d991-f98b-4dfb-a59b-dcd3a2b843a1Ayman Shoukry - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Ayman%20Shoukry%20-%20MSFTRunning a very simple Win32 app on a comp without VC++ 2005 ExpressThe proper way is to use vcredist_x86.exe.&nbsp;&nbsp;More details are mentioned&nbsp;at <a target="_blank" title="/MSDN/ShowPost.aspx?PostID=149470&amp;SiteID=1" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=149470&amp;SiteID=1">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=149470&amp;SiteID=1</a>&nbsp;or to just link statically to the CRT using the /MT compiler switch.<br /><br />For more info, please see:<br /><a title="http" href="http://msdn2.microsoft.com/en-us/library/ms235624.aspx" target="_blank">http://msdn2.microsoft.com/en-us/library/ms235624.aspx</a><br /><a title="http" href="http://msdn2.microsoft.com/en-us/library/zebw5zk9.aspx" target="_blank">http://msdn2.microsoft.com/en-us/library/zebw5zk9.aspx</a><br /><br /><br />Thanks,<br />&nbsp; Ayman Shoukry<br />&nbsp; VC++ TeamSun, 11 Dec 2005 01:14:37 Z2005-12-12T19:44:10Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#9c25e936-a55d-427e-bb97-7fe1e8f67438http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#9c25e936-a55d-427e-bb97-7fe1e8f67438Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 ExpressBut he's using Express which doesn't even come with a vcredist_x86.exe.&nbsp; The only way with Express is using the merge modules that come with Express in the folder:<br /><br />\program files\common files\merge Modules<br /><br />plus&nbsp;ensuring that Windows Installer 3.x engine is available on the user's machine, and if it's not, installing that as well.&nbsp; <br /><br />The two methods that work with something higher than Express, are:<br /><br />1) using vcredist_x86 in:<br /><br />C:\program files\microsoft visual studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86<br /><br />plus&nbsp;ensuring that Windows Installer 3.x engine is available on the user's machine, and if it's not, installing that as well.&nbsp; <br /><br />2) Copying these folders to your program folder (keeping&nbsp;the sub folder names):<br />\program files\microsoft visual studio 8\VC\redist\x86<br /><br />Sun, 11 Dec 2005 16:37:43 Z2005-12-11T16:37:43Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#10b75022-d9d6-44f2-aaf7-4043817bdc06http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#10b75022-d9d6-44f2-aaf7-4043817bdc06Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<p>OK, due to popular demand, and my frustration with seeing so many people using Express that simply want to run an app on another machine, without the hassle of learning about merge modules, Windows Installer, etc, etc, etc, here is a way to perform deployment option number 2 above (i.e. installing C Runtime library applocal) for Express.</p> <p>1) On the machine you have Express installed, create the following folder and subfolders in your <br />\program files\microsoft visual studio 8\VC folder:</p> <p>redist\x86\Microsoft.VC80.CRT</p> <p>2) Copy msvcr80.dll, msvcp80.dll, msvcm80.dll from <br />\windows\winsxs\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd</p> <p>into:</p> <p>\program files\microsoft visual studio 8\VC\redist\x86\Microsoft.VC80.CRT</p> <p>3) in the above Microsoft.VC80.CRT folder, create a new file named:</p> <p>Microsoft.VC80.CRT.manifest</p> <p>4) Paste the following content into the above manifest file:</p> <p>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;<br />&lt;!-- Copyright © 1981-2001 Microsoft Corporation --&gt;<br />&lt;assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"&gt;<br />&nbsp;&nbsp;&nbsp; &lt;noInheritable/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;assemblyIdentity <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type="win32" <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name="Microsoft.VC80.CRT" <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; version="8.0.50608.0" <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; processorArchitecture="x86" <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; publicKeyToken="1fc8b3b9a1e18e3b"<br />&nbsp;&nbsp;&nbsp; /&gt;<br />&nbsp;&nbsp;&nbsp; &lt;file name="msvcr80.dll"/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;file name="msvcp80.dll"/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;file name="msvcm80.dll"/&gt;<br />&lt;/assembly&gt;</p> <p>Now you have a new folder in your&nbsp;Visual C++ Express&nbsp;installation&nbsp;that can be re-used when ever you need it.</p> <p>To deploy these files, simply copy the Microsoft.VC80.CRT folder you just created to your program folder.&nbsp; That's it.&nbsp; So for example, if your application executable resides in C:\Program Files\MyApp, you'll have a folder named:</p> <p>C:\Program Files\MyApp\Microsoft.VC80.CRT </p> <p>that contains&nbsp;the 4 files I mentioned (3 DLLs and one manifest file you created by hand)</p> <p>No installation of anything else is necessary.&nbsp; Just click on your EXE file, and your app will run.&nbsp; No special installation engines are necessary, just make your setup program (installer) create that subfolder Microsoft.VC80.CRT along with what you normally install with your app)<br /><br />Let me know if you need similar instructions for MFC and I'll create them.&nbsp; <br /><br /></p>Sun, 11 Dec 2005 17:28:19 Z2006-04-06T21:49:36Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#5d5c94b0-cec5-49e1-890d-c71c85836f3ahttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#5d5c94b0-cec5-49e1-890d-c71c85836f3aandreas_2http://social.msdn.microsoft.com/Profile/en-US/?user=andreas_2Running a very simple Win32 app on a comp without VC++ 2005 ExpressThank you <b>VERY</b> much Ted, an explanation like yours was exactly what I was looking for, and it worked perfectly :).<br /> Mon, 12 Dec 2005 19:43:31 Z2005-12-12T19:43:31Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#d2a5ad03-aa3c-445f-9fa6-64ddcfd379adhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#d2a5ad03-aa3c-445f-9fa6-64ddcfd379adhathawahttp://social.msdn.microsoft.com/Profile/en-US/?user=hathawaRunning a very simple Win32 app on a comp without VC++ 2005 ExpressThis procedure did not seem to work for me where I have a single DLL with an embedded manifest which is called from Java via JNI.&nbsp; I put the Microsoft.VC80.CRT subdirectory in the same location as the dll.&nbsp; Any ideas?<br /> Mon, 12 Dec 2005 20:10:45 Z2005-12-12T20:10:45Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#33402199-6392-4f23-8a09-fd4caeb4e14fhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#33402199-6392-4f23-8a09-fd4caeb4e14fTed_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 ExpressAndreas, good to hear.&nbsp; I wish they would've include those files in the default Express installations.<br /><br />hathawa, I don't know how applocal installation is supposed to work in cases where you have no control over the main executable (i.e. you can only just put the manifest in the DLL and not the executable file)&nbsp; I'll have to research that some more.&nbsp; Mon, 12 Dec 2005 21:27:07 Z2005-12-12T21:27:07Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#bfcf0fc6-f2f4-4bfe-b08b-4dbcc0621c12http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#bfcf0fc6-f2f4-4bfe-b08b-4dbcc0621c12Saurabh.Garghttp://social.msdn.microsoft.com/Profile/en-US/?user=Saurabh.GargRunning a very simple Win32 app on a comp without VC++ 2005 ExpressDear Ted,<br /><br />thanks for the information you provided for copying CRT files.<br />I want to do same for MFC based application also and I followed similar step for <br /><br />Microsoft.VC80.MFC<br />Microsoft.Tools.VisualCPlusPlus.Runtime-Libraries<br /><br />copying dlls in them and creating a manifest file which I copied and modified from winsxs\manifests but still my application is not working on a machine with no visual studio 2005. Did I miss something? can you please provide step for doing same.<br /><br />thanks,<br />SaurabhTue, 13 Dec 2005 05:51:27 Z2005-12-13T05:51:27Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#212b453b-4546-42ad-8b94-058e57ebc356http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#212b453b-4546-42ad-8b94-058e57ebc356Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 ExpressFor Microsoft.VC80.MFC after copying the manifest please open it up in notepad and change the version to 8.0.50608.0&nbsp; <br /><br />I just tried on my test machine and it worked.&nbsp; Can you tell me what error you got?&nbsp; Try using dependency walker to see if it picks up the DLLs.<br /><br />For the other one you mentioned&nbsp;I don't think you need it or require for your app if it's a 2005 app. It's for apps written in Visual C++ 6.0.&nbsp;&nbsp;&nbsp; I woudn't recommend manifest for those DLLs if you require them.&nbsp; Just copy them to system32 folder.<br /><br />Ted.Tue, 13 Dec 2005 14:22:01 Z2005-12-13T14:22:01Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#275df643-8c33-4d29-8d27-379936f0b54fhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#275df643-8c33-4d29-8d27-379936f0b54fa_Carlos_http://social.msdn.microsoft.com/Profile/en-US/?user=a_Carlos_Running a very simple Win32 app on a comp without VC++ 2005 Express<p>Hi everybody;</p> <p>With regards to the Windows Installer in this version of VC++ Express,... well, how?</p> <p>Whilst the one simple walkthrough that I found in the MSDN does, admittedly, state that menus and dialogues may differ dependant on settings, the 'Add New Project' dialog box that I see only contains the &quot;Visual C++&quot;    'node', as the walkthrough puts it, as opposed to the &quot;Other Project Types&quot; node mentioned there.</p> <p>What have I not installed, or what am I doing wrong, or where do I need to look?!</p> <p>Any help would be much appreciated!</p> <p>Thanks</p>Tue, 21 Feb 2006 20:53:03 Z2006-02-21T20:53:03Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#b32c42b0-9150-4b52-b9a1-9bdc019f98cchttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#b32c42b0-9150-4b52-b9a1-9bdc019f98ccTed_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<p>you can use Wix</p> <p><a title="http://www.codeproject.com/cpp/vcredists_x86.asp" href="http://www.codeproject.com/cpp/vcredists_x86.asp">http://www.codeproject.com/cpp/vcredists_x86.asp</a></p> <p><a title="http://blogs.msdn.com/nikolad/archive/2005/09/02/460368.aspx" href="http://blogs.msdn.com/nikolad/archive/2005/09/02/460368.aspx">http://blogs.msdn.com/nikolad/archive/2005/09/02/460368.aspx</a></p>Tue, 21 Feb 2006 22:50:16 Z2006-02-21T22:50:16Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#c3dbfc55-7006-4860-ab26-976da9f8f9efhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#c3dbfc55-7006-4860-ab26-976da9f8f9efBlane245http://social.msdn.microsoft.com/Profile/en-US/?user=Blane245Running a very simple Win32 app on a comp without VC++ 2005 Express<p>I just install VC++ 2005 Express this week to make use of the new SerialPort class in MFC and am having a couple fo deployment problems. I have had my user install the framework redistributable for 2.0.</p> <p>These problems are new to VC++ 2005 Express. </p> <p>1. An attempt to execute the Debug version of the execuatbles give the &quot;not properly configured&quot; error. I have tried the dll and manifest copying trick recommended to no avail.</p> <p>2. Execution of the Release version of the executables causes a failure in teh SerialPort ReadExisting call in which all of the data is received as question marks (?). I saw this problem during development and the fix was to add an access to property BytesToRead before making the ReadExisting call. WHile that didn't make any sense to me at the time, it worked - but now it isn't <img src="images/emoticons/smile_sad.gif"></p>Fri, 05 May 2006 15:33:00 Z2006-05-05T15:33:00Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#c10fa78d-fb42-4169-9cd8-9b50b04b8a0bhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#c10fa78d-fb42-4169-9cd8-9b50b04b8a0bTed_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<P>Bob Lane for debug versions just create a text file named:</P> <P>Microsoft.VC80.DebugCRT.manifest</P> <P>with the following&nbsp;contents:</P> <P>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;<BR>&lt;!-- Copyright © 1981-2001 Microsoft Corporation --&gt;<BR>&lt;assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;noInheritable/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;assemblyIdentity <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type="win32" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name="Microsoft.VC80.DebugCRT" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; version="8.0.50608.0"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; processorArchitecture="x86" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; publicKeyToken="1fc8b3b9a1e18e3b"<BR>&nbsp;&nbsp;&nbsp; /&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;file name="msvcr80d.dll"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;file name="msvcp80d.dll"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;file name="msvcm80d.dll"/&gt;<BR>&lt;/assembly&gt;<BR></P> <P>Then copy this file as well as the 3 files mentioned in the manifest to the folder where your program or DLL resides.&nbsp; </P> <P>Do the same for MFC: create&nbsp;a text file named Microsoft.VC80.DebugMFC.manifest and copy the following contents in there:</P> <P>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;<BR>&lt;!-- Copyright © 1981-2001 Microsoft Corporation --&gt;<BR>&lt;assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;noInheritable/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;assemblyIdentity <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type="win32" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name="Microsoft.VC80.DebugMFC" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; version="8.0.50608.0" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; processorArchitecture="x86" <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; publicKeyToken="1fc8b3b9a1e18e3b"<BR>&nbsp;&nbsp;&nbsp; /&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;file name="mfc80d.dll"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;file name="mfc80ud.dll"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;file name="mfcm80d.dll"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;file name="mfcm80ud.dll"/&gt;<BR>&lt;/assembly&gt;<BR></P> <P>Then copy this manifest plus the 4 DLLs mentioned to the same folder where your program or DLL resides. </P> <P>It's that simple.</P> <P>&nbsp;</P>Sat, 06 May 2006 02:38:28 Z2006-05-06T02:38:28Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#dd839a53-baf4-4445-a204-c8171feb6220http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#dd839a53-baf4-4445-a204-c8171feb6220Blane245http://social.msdn.microsoft.com/Profile/en-US/?user=Blane245Running a very simple Win32 app on a comp without VC++ 2005 ExpressTed, unfortunately, I am unable to locate the mfc*80d.dll files. Are you sure those are the right file names?Wed, 10 May 2006 14:09:30 Z2006-05-10T14:09:30Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#34c4c286-b5aa-4534-9663-c1350bd3f655http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#34c4c286-b5aa-4534-9663-c1350bd3f655Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<p>Hi Bob, sorry, I didn't realize that it was VC++ Express.  You can't even compile an MFC application using Express (it's not supported) so no debug nor release versions of MFC DLLs are included with Visual C++ Express.  Under what situation are you finding that you require debug versions of MFC, if you can't even compile an app using MFC? </p> <p>As MFC doesn't come with Express, Is it possible you're trying to use the MFC version that came with the Platform SDK? If so the only way around that would be to compile MFC as a static library (this is non-trivial)</p>Wed, 10 May 2006 15:01:09 Z2006-05-10T15:01:09Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#29d04824-7046-4617-8193-c21a8ec9c63bhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#29d04824-7046-4617-8193-c21a8ec9c63bBlane245http://social.msdn.microsoft.com/Profile/en-US/?user=Blane245Running a very simple Win32 app on a comp without VC++ 2005 Express<p>OK, now I'm getting lost. I'll tell you how I got where I am and maybe you can help me find the way out of the woods.</p> <p>I have a Visual C++.net, version 2003, that uses Framework V1.1. I was having some problems the access to the serial port drivers availabe in Platform SDK, so I found that Framework v2.0 had the class for that object. But since VC++ 2003 does not work with Framework 2.0, I installed VC++ Express along with the new Framework. </p> <p>I subsequently implemented the access to the SerialPort class and got everything working, with one minor exception. The app would throw an exception (nullReferenceException) when compiled in Release mode. This did not occur in Debug mode. I have yet to determine why that is. </p> <p>When I copied the executables (both release and debug) to another computer, the release version got the same exception (along with errors in the serial port access - yet another problem), but the debug version would not start because of the &quot;invalid configuration&quot; error. BTW, that computer has the redistribution copy of Framework 2.0 installed. </p> <p>As an added piece of information, I have just installed VC++ Express and Platform SDK on a third computer and the debug version is working. The release version still gets the nullReferenceException.</p>Wed, 10 May 2006 21:05:42 Z2006-05-10T21:05:42Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#b79a60b3-b64f-4556-9504-f9de198f143bhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#b79a60b3-b64f-4556-9504-f9de198f143bTed_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<P>Now that I re-read your original, I understand where I went wrong - the SerialPort class has nothing to do with MFC - it's part of the .NET Framework 2.0.&nbsp; So you don't need MFC at all. All you need to ensure is that the .NET Framework 2.0 redist is installed.&nbsp; So this is off topic to the original thread (as it deals with Win32 apps not .NET Framework based apps)</P> <P>If you copy a debug&nbsp;app to another computer then you need debug versions of the C Runtime Library installed there's no way around that.&nbsp;&nbsp;&nbsp; The easiest way is to just install the entire development environment again on that computer.&nbsp; </P> <P>To solve your problem, you will have to debug your release app to see why it's causing an exception (step through in the debugger). It likely has nothing to do with redistributables and such, and is probably a legitimate bug in the code that only shows up in the release version of your app (I've had many of these over the years)</P>Thu, 11 May 2006 13:19:43 Z2006-05-11T13:19:43Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#d504873c-2940-4db8-bf96-ea1885f68888http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#d504873c-2940-4db8-bf96-ea1885f68888Blane245http://social.msdn.microsoft.com/Profile/en-US/?user=Blane245Running a very simple Win32 app on a comp without VC++ 2005 ExpressTed, thanx allot for sticky with me. I learning. I will solve my bug problem and stay away from distributing debug versions.Thu, 11 May 2006 13:49:41 Z2006-05-11T13:49:41Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#861fef0c-bdc8-46cc-a547-17541d26cbf7http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#861fef0c-bdc8-46cc-a547-17541d26cbf7mharris58http://social.msdn.microsoft.com/Profile/en-US/?user=mharris58Running a very simple Win32 app on a comp without VC++ 2005 ExpressNope. Now I get Runtime error! Program C...<br> R6034<br> An application has made an attempt to load the C runtime library incorrectly.<br> Please contact the application's support team for more information.<br> <br> ahhhhhhhhhhhhhh...<br>Thu, 08 Jun 2006 05:09:11 Z2006-06-08T05:09:11Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#a28d44d5-6fcd-4819-a897-4de21a8d0ac1http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#a28d44d5-6fcd-4819-a897-4de21a8d0ac1MrT25http://social.msdn.microsoft.com/Profile/en-US/?user=MrT25Running a very simple Win32 app on a comp without VC++ 2005 Express<p><font size=2>Thanks for the advice Ted,</font></p> <p><font size=2>Unfortunately, I have followed these directions with Express and I have a <hr id="[object]"> new issue, when I run the executable, I get this message in a pop-up error window:</font></p> <p><font size=2>&quot;The procedure entry point_encode_pointer could not be located in the dynamic link library MSVCR80.dll.&quot;</font></p> <p><font size=2>As far as I know, I have the most recent version of MSVCR80.dll, if there is more than 1 version.</font></p> <p><font size=2>Additionally, I used the dependency checker (depends.exe) and it show grief with two other functions (three total):</font></p> <p><font size=2> </font></p> <p><font size=2>_decode_pointer</font></p> <p><font size=2>_encode_pointer</font></p> <p><font size=2>_except_handler4_common</font></p> <p><font size=2> </font></p> <p><font size=2>Has any else had this same issue and resolved it?  Any help is appreciated Ted, if you are still monitoring this thread.</font></p> <p><font size=2>Thanks,</font></p> <p><font size=2>Ryan</font></p>Thu, 27 Jul 2006 15:46:59 Z2006-07-27T15:46:59Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#80812c11-3537-4df7-8978-844b33086ffahttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#80812c11-3537-4df7-8978-844b33086ffaJonathan Caves - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Jonathan%20Caves%20-%20MSFTRunning a very simple Win32 app on a comp without VC++ 2005 ExpressWhere does depends.exe show msvcr80.dll is located and also what is the version of the dll?Thu, 27 Jul 2006 16:20:12 Z2006-07-27T16:20:12Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#2ee4c2af-e38c-4603-95ad-9170f2f8f5d0http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#2ee4c2af-e38c-4603-95ad-9170f2f8f5d0MrT25http://social.msdn.microsoft.com/Profile/en-US/?user=MrT25Running a very simple Win32 app on a comp without VC++ 2005 Express<font face="Times New Roman, Times, Serif">It says it is located in the sub directory of 'Microsoft.VC80.CRT', and the version number is 8.0.50215.44.</font>Thu, 27 Jul 2006 18:00:07 Z2006-07-27T18:00:07Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#c377e2bb-3470-4aca-8cc4-4414e91067d0http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#c377e2bb-3470-4aca-8cc4-4414e91067d0Jonathan Caves - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Jonathan%20Caves%20-%20MSFTRunning a very simple Win32 app on a comp without VC++ 2005 ExpressThis is not an officially released version of msvcr80.dll (I suspect it may be a beta-release). Did you get it from <a title="http://www.dll-files.com/dllindex/dll-files.shtml?msvcr80" href="http://www.dll-files.com/dllindex/dll-files.shtml?msvcr80">here</a>? If so then I suggest that you re-install Visual C++ Express to ensure that you get the correct version. Note: the link I provided has comments from Martyn Lovell from the Visual C++ team explaining why you shouldn't use this version of the DLL.Thu, 27 Jul 2006 19:59:38 Z2006-07-27T19:59:38Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#e882f7bf-d46a-448b-a197-438a097c3983http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#e882f7bf-d46a-448b-a197-438a097c3983MrT25http://social.msdn.microsoft.com/Profile/en-US/?user=MrT25Running a very simple Win32 app on a comp without VC++ 2005 Express<p><font size=2>Awesome, thanks for the quick reply, that looks like the problem to me, I'll have to check tomorrow on my target computer to be sure, I'll come back if I have any more problems. I hope that helps anyone else who got the wrong dll file. I also found that the same file is on several different dll download sites.</font></p> <p><font size=2>Once again, thanks!<br>-Ryan</font></p>Thu, 27 Jul 2006 22:23:07 Z2006-07-27T22:23:07Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#e901d51c-5432-4a1e-b8a2-3d89a557353chttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#e901d51c-5432-4a1e-b8a2-3d89a557353cScott Royallhttp://social.msdn.microsoft.com/Profile/en-US/?user=Scott%20RoyallRunning a very simple Win32 app on a comp without VC++ 2005 Express<p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">Oh boy, I am sitting here bemused. It never fails that Microsoft changes the paradigm of development with each release of Visual Studio. Now we have manifests to deal with. Oh joy.</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman"> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">I’m new to Visual Studio 2005 Professional, and am using it in updating my Augmentative and Assistive Communication product, Xpress-It. Xpress-It is your typical MDI app invoking various DLLs as it initializes, including some rather venerable ones. Xpress-It currently depends on the version of InstallShield that came with VS 6. Obviously, I am now compelled to update all of that. I’d think that VS 2005 Pro would have something to automatically build the manifest. After all, the environment knows every file the app is grabbing during initialization, And then there’s the next step, which I take to be building a MSI package. I don’t remember if those date back to Windows 98, but Xpress-It has to stay backwardly compatible at least that far.</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman"> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">Oui vey. What I seem to need is for someone to offer some guidance. I need to know what steps are involved in creating a tidy installation package with backwards compatibility. This installation does involve creating an ODBC connection to an included database so I strongly suspect I’ll have to see some working examples.</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman"> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face="Times New Roman">We can always count on Microsoft to keep us guessing, huh?</font></p>Tue, 29 Aug 2006 01:06:23 Z2006-08-29T01:06:23Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#72f35f64-26a0-434c-b9f6-1ea097c0b287http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#72f35f64-26a0-434c-b9f6-1ea097c0b287gxohttp://social.msdn.microsoft.com/Profile/en-US/?user=gxoRunning a very simple Win32 app on a comp without VC++ 2005 Express<p>Ted,</p> <p> </p> <p>Excellent, excellent, excellent !!!</p> <p>I know your post is old but it worked for me. I thought I was losing my mind. ;)</p> <p>Anyways, if it is possible, can you post a sample for the .NET installation sample ?</p> <p> </p> <p>Thanks in advance,</p> <p>gxo</p>Thu, 26 Oct 2006 15:58:40 Z2006-10-26T15:58:40Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#b5d7fba1-6c9a-4a56-8bba-d3860b4da6d4http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#b5d7fba1-6c9a-4a56-8bba-d3860b4da6d4Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<p>Can you be more specific as to what you mean by &quot;.NET installation sample&quot;?  </p> <p>The .NET 2.0 framework runtime is a redistributable component that is downloadable from Microsoft downloads.  </p> <p><a title="http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&amp;displaylang=en</a></p>Thu, 26 Oct 2006 20:26:49 Z2006-10-26T20:26:49Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#454c9d65-0196-4da0-aea4-eecf84c3341chttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#454c9d65-0196-4da0-aea4-eecf84c3341cgxohttp://social.msdn.microsoft.com/Profile/en-US/?user=gxoRunning a very simple Win32 app on a comp without VC++ 2005 Express<p>Ted,</p> <p> </p> <p>Thanks for the response. What I meant is: can I make a stand alone *.exe windows form application without all the hassles of downloading and installings .NET 1.1/2.0 stuff on the target PC. Is it possible to create something like Microsoft.VC80.NET.manifest ???</p> <p> </p> <p>Thanks in advance,</p> <p>gxo</p>Fri, 27 Oct 2006 14:26:45 Z2006-10-27T14:26:45Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#d54bd4c5-bdef-4e7a-8d14-5e86235a45b5http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#d54bd4c5-bdef-4e7a-8d14-5e86235a45b5Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Expresshi gxo, no this is not possible.  You must have a .NET Framework installed on the target PC, and it must be installed properly (i.e. using the redistributable with any necessary language packs).   This is one of the reasons why some people stick with unmanaged development - they don't want to be dependent on the .NET Framework engine.Fri, 27 Oct 2006 15:18:39 Z2006-10-27T15:18:39Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#6e2ee916-df41-4356-b1e3-f1645213c926http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#6e2ee916-df41-4356-b1e3-f1645213c926Perpfhttp://social.msdn.microsoft.com/Profile/en-US/?user=PerpfRunning a very simple Win32 app on a comp without VC++ 2005 Express<p>Hi!</p> <p>I'm not quite sure that this is exactly the problem I'm facing right now, so I'm just making sure...</p> <p>I upgraded to MS VS2005pro and continued working on the latest release of my app. Now I released a few Beta-Installations just the way I always did. Obvioulsly some (maybe all; don't know yet) of my customers run into this &quot;application configuration incorrect&quot;-problem. Will the cure described above help me as well?</p> <p>I'm using VS 2005pro, MFC and I'm linking the libs staticly.</p> <p>I'm stuck, please help ;-)</p> <p>Nils</p>Wed, 08 Nov 2006 12:58:42 Z2006-11-08T12:58:42Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#39c6ebe8-66f7-415c-bccb-287a240a4409http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#39c6ebe8-66f7-415c-bccb-287a240a4409Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 ExpressIf you're linking statically then yours is not the same problem.  You should have no dependencies on any CRT and MFC files.  Are you sure all your EXEs and DLLs are linking statically?Wed, 08 Nov 2006 16:23:32 Z2006-11-08T16:23:32Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#d91ea03c-c2e5-4913-a137-fa5a8d7b3181http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#d91ea03c-c2e5-4913-a137-fa5a8d7b3181Perpfhttp://social.msdn.microsoft.com/Profile/en-US/?user=PerpfRunning a very simple Win32 app on a comp without VC++ 2005 ExpressIs there a tool to examine my EXE to find out?Thu, 09 Nov 2006 06:06:22 Z2006-11-09T06:06:22Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#211eb8d0-9850-4fe5-8fd2-705411be84cdhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#211eb8d0-9850-4fe5-8fd2-705411be84cdTed_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<p>Yes, you can use dependency walker (depends.exe) , it should be found here on your machine:</p> <p>\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin</p> <p> </p>Thu, 09 Nov 2006 13:06:15 Z2006-11-09T13:06:15Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#c36a5014-b646-483e-a073-03e7ede66286http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#c36a5014-b646-483e-a073-03e7ede66286Perpfhttp://social.msdn.microsoft.com/Profile/en-US/?user=PerpfRunning a very simple Win32 app on a comp without VC++ 2005 Express<p>Hi!</p> <p>I used depends.exe and got a lot of information that doesn't really tell me too much (lots of DLLs that depends on others etc.).</p> <p>So I assumed (beacause I don't know) that not ALL libs are linked statically and tried your work-around. Since the required directories, DLLs and manifests are already there, I just copied the ones for VC and MFC into my app-directory; and it seems to work (app still crashes immediatly, but this may have other causes).</p> <p>So this particular problem seems to be solved, however one question remains:</p> <p>How am I supposed to know that after upgrading to VS2005 I need to do such things to get my app deployed? Or: Why doesn't the installer take care of this?</p> <p>Thanks for your help!!</p> <p> </p> <p>Nils  </p>Sun, 12 Nov 2006 10:11:08 Z2006-11-12T10:11:08Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#ae68d596-da29-4ecf-84e6-1cc16206fbc4http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#ae68d596-da29-4ecf-84e6-1cc16206fbc4Perpfhttp://social.msdn.microsoft.com/Profile/en-US/?user=PerpfRunning a very simple Win32 app on a comp without VC++ 2005 Express<p>Hi Ted!</p> <p>Yet another question:</p> <p>I included the two above mentioned folders (VC &amp; MFC) into my installer package. This automatically makes the install dependent on the .NET-Framework (although I don't use it). Also, when place these two folders into the Filesystem of my installer package I get the following request from the IDE: &quot;These files are already available in C:\......., would you like to include the merge-modules instaed?&quot;. What should I do? What does it mean?</p> <p>Please bring some light into this darkness ;-)</p> <p>Nils</p>Sun, 12 Nov 2006 11:26:51 Z2006-11-12T11:26:51Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#7aa78ad6-2363-489d-a6ee-c1ccf61f3e11http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#7aa78ad6-2363-489d-a6ee-c1ccf61f3e11Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<p>Some of the stuff related to this issue are in the documentation.  </p> <p>There are many different ways to deploy a native app.  You can read up about it here:</p> <p>deployment (general concepts):</p> <p><a title="http://msdn2.microsoft.com/en-us/library/zebw5zk9(VS.80).aspx" href="http://msdn2.microsoft.com/en-us/library/zebw5zk9(VS.80).aspx">http://msdn2.microsoft.com/en-us/library/zebw5zk9(VS.80).aspx</a></p> <p>choosing deployment method:</p> <p><a title="http://msdn2.microsoft.com/en-us/library/ms235316(VS.80).aspx" href="http://msdn2.microsoft.com/en-us/library/ms235316(VS.80).aspx">http://msdn2.microsoft.com/en-us/library/ms235316(VS.80).aspx</a></p> <p>using setup and deployment:</p> <p><a title="http://msdn2.microsoft.com/en-us/library/ms235317(VS.80).aspx" href="http://msdn2.microsoft.com/en-us/library/ms235317(VS.80).aspx">http://msdn2.microsoft.com/en-us/library/ms235317(VS.80).aspx</a></p> <p>using xcopy:</p> <p><a title="http://msdn2.microsoft.com/en-us/library/ms235291(VS.80).aspx" href="http://msdn2.microsoft.com/en-us/library/ms235291(VS.80).aspx">http://msdn2.microsoft.com/en-us/library/ms235291(VS.80).aspx</a></p> <p> </p> <p> </p>Mon, 13 Nov 2006 20:08:53 Z2006-11-13T20:08:53Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#5bb8dddb-9631-4582-9b0d-41711ca4a260http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#5bb8dddb-9631-4582-9b0d-41711ca4a260Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<p>No, it doesn't.  Your MFC application should not be dependent on the .NET Framework if you do not use it.</p> <p>I'm not sure where you get this message, but I agree that using the merge modules are a better way to distribute the software (see my last post above for more info)</p>Mon, 13 Nov 2006 20:11:23 Z2006-11-13T20:11:23Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#06e4a546-030e-46f1-86a6-b9246fcc44fbhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#06e4a546-030e-46f1-86a6-b9246fcc44fbIonizinghttp://social.msdn.microsoft.com/Profile/en-US/?user=IonizingRunning a very simple Win32 app on a comp without VC++ 2005 ExpressHi Ted,<br><br>Your step by step instructions ALMOST fixed my issue.  It got the application to give another error at least, instead of the original infamous one.  I followed the Debug mode instructions and now when I run the app it gives:<br><br>The application failed to initialize properly (0xc0000034).  Click on OK to terminate the application.<br><br>This app works just fine on the programmers computer but wont work on mine.  I was quite pleased however that your step by step guide was able to at least remove the first error.  Any suggestions on what to do next?<br><br>thanks<br>Robert<br>Sat, 16 Dec 2006 16:14:12 Z2006-12-16T16:14:12Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#207553cc-e677-40a1-bdc8-8f7ad7b9230chttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#207553cc-e677-40a1-bdc8-8f7ad7b9230cIonizinghttp://social.msdn.microsoft.com/Profile/en-US/?user=IonizingRunning a very simple Win32 app on a comp without VC++ 2005 ExpressIn the meantime, Im going to install the visual c++ express sdk just to see if it helps matters at all.  Unfortuneatly the programmer is unavailable to help troubleshoot at the moment and this is very urgent, I will reply again with the outcome of installing the full sdk, Im hoping it will miraculously fix the issue.  thanks<br>Sat, 16 Dec 2006 16:39:55 Z2006-12-16T16:39:55Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#438d0110-64cb-449c-8bac-b62549ffdd6ahttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#438d0110-64cb-449c-8bac-b62549ffdd6aIonizinghttp://social.msdn.microsoft.com/Profile/en-US/?user=IonizingRunning a very simple Win32 app on a comp without VC++ 2005 ExpressWell, installing .net 2.0 and the visual express SDK indeed made it so the app would finally run.  However now it just crashes further in but at least it no longer seems to be a setup issue with .dlls and such.  Ill have our programmers check out this thread for information, thanks Ted for posting the info.  <br><br>Robert<br>Sat, 16 Dec 2006 16:52:25 Z2006-12-16T16:52:25Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#16395573-b66e-4a01-97fb-0f845ba4c7f5http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#16395573-b66e-4a01-97fb-0f845ba4c7f5ipapouhttp://social.msdn.microsoft.com/Profile/en-US/?user=ipapouRunning a very simple Win32 app on a comp without VC++ 2005 Express<blockquote dir=ltr style="margin-right:0px"> <p> </p></blockquote>Mon, 01 Jan 2007 10:05:31 Z2007-01-01T10:05:31Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#fe28394a-773d-4554-935a-f1b9c2eb38fbhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#fe28394a-773d-4554-935a-f1b9c2eb38fbCodeninjahttp://social.msdn.microsoft.com/Profile/en-US/?user=CodeninjaRunning a very simple Win32 app on a comp without VC++ 2005 ExpressHi, I'm having pretty much the same problem as everyone else is with VC++ Express Edition.&nbsp; I can't get an application to run on a different PC. I've tried using the solution Nikola Dudar listed, very carefully follow every step, and that failed to work for me, then I tried Ted's solution and that failed to work for me as well. <br><br>I need to ask if there is anything I missed such as if I am supposed to build the application differently or something to get it to work as it seems everyone else has positive feedback that these solutions are effective whereas I can't seem to get past the error message that claims the application is configured incorrectly.<br><br>Any help would be deeply appreciated.<br><br><br>I think I would appreciated it most if someone told me how I could just make everything statically linked in VC++ EE.&nbsp; I have a feeling being non-dependent on the .NET framework is the only choice I have for the project I'm working on.<br>Wed, 10 Jan 2007 07:38:18 Z2007-01-10T07:38:18Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#4a4ff475-cfa2-4d45-bce5-3eb21c9471c8http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#4a4ff475-cfa2-4d45-bce5-3eb21c9471c8Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Expresshi codeninja, my guess is that you are attempting to run a "debug" version of your app on a different PC instead of the "release" version.&nbsp; On one of the toolbars in the IDE there should be a dropdown list that says "Debug" on it.&nbsp; Just change that to "Release" and then rebuild your app.&nbsp; The instructions I gave will work with "release" builds only (without SP1 installed - if you have SP1 then the version in the manifest file needs to be changed from 8.0.50608.0 to 8.0.50727.763 and then SP1 versions of the libraries need to be copied instead of the originals)Thu, 11 Jan 2007 15:07:04 Z2007-01-11T15:07:04Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#5b0f7133-4780-4a10-a601-24dcd0429a0chttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#5b0f7133-4780-4a10-a601-24dcd0429a0calpsinanhttp://social.msdn.microsoft.com/Profile/en-US/?user=alpsinanRunning a very simple Win32 app on a comp without VC++ 2005 Express<p>-----You can't even compile an MFC application using Express (it's not supported) </p> <p>This is not correct! If you have say.. Visual studio 7.0 or another ms product... I think you can also <u>legally </u>compile software with Express... (I think Iegally)</p> <p>I did! (I used the mfc 8.0 from vs Beta 2) </p>Thu, 11 Jan 2007 19:39:26 Z2007-01-11T19:39:26Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#f28327d1-0709-43d3-8aba-0a4e6e3b5f3bhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#f28327d1-0709-43d3-8aba-0a4e6e3b5f3bCodeninjahttp://social.msdn.microsoft.com/Profile/en-US/?user=CodeninjaRunning a very simple Win32 app on a comp without VC++ 2005 ExpressThankyou very much Ted :D <br><br>Sorry for asking such a newbie question but that did allow it to work.... Even so it still requires that the .Net framework be installed.... Shouldn't microsoft have all of these files in a service pack or something? But anyways turns out VC# 2005 EE applications run perfectly without a hitch on other PCs.... which is a shame cause I really really like c++ <br><br>Ah well my problems are solved either way so thank you very much Ted.Fri, 12 Jan 2007 05:32:30 Z2007-01-12T05:32:30Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#69befaef-3577-49a8-a17b-3049df5f95f9http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#69befaef-3577-49a8-a17b-3049df5f95f9elpepehttp://social.msdn.microsoft.com/Profile/en-US/?user=elpepeRunning a very simple Win32 app on a comp without VC++ 2005 Express<p>Great work Ted!!</p> <p>I just simply want to remark a little confussion I had at the time to write down the manifest file: the version number of the msvcx80.dll is 8.0.50727.42 but in the manifest file you NEED to write version=&quot;8.0.50608.0&quot;  because if I use the other one it fails...., I don't understand this fact but letting the things like that (with two different version number in the manifest file) everything works fine.</p> <p>Thanks</p> <p>Mario<br></p>Wed, 24 Jan 2007 14:59:36 Z2007-01-24T14:59:36Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#57aad3e1-e7f6-42f9-b3ed-95d97e1455f6http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#57aad3e1-e7f6-42f9-b3ed-95d97e1455f6elpepehttp://social.msdn.microsoft.com/Profile/en-US/?user=elpepeRunning a very simple Win32 app on a comp without VC++ 2005 ExpressTed, one more thing about VC2005 EE. How in the earth did I get stacked with .Net if I only want to write a simple application for Windows?. I used VC2005 EE for building some samples as Amcap (DirectX/DirectShow sample) and also CaptureSound (DirectX/DirecSound sample). I modified these samples for my purpose and can run the executables files in others machines without problems. None of those machines have .Net framework installed of course. Also I made form the scratch a CLR/console application without problems fo distribution. Now I start a new project of makefile type because I want to use Qt graphics capabilities and all this troubles came along. I am affraid I have told to the IDE (somewhere..) to use .Net??. Excuse me but I am newbie so I need an advice. When I start a new project from the scratch, what kind of options should I avoid for not use .Net framework?.Wed, 24 Jan 2007 15:22:06 Z2007-01-24T15:22:06Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#300803e4-9d61-4a81-ac08-ab4102f7a8c1http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#300803e4-9d61-4a81-ac08-ab4102f7a8c1MSCavemanhttp://social.msdn.microsoft.com/Profile/en-US/?user=MSCavemanRunning a very simple Win32 app on a comp without VC++ 2005 Express<p>That was very helpful, unfortunately this didn't help me.  I am running VS8.0 Pro edition, and I still am unable to generate the simple task of making a portable executable.  It seems that what used to be a simple C compiler is now back to the days of VB when you needed to tag a bunch of dll files around with your executable because of compiler limitations.</p> <p>My dilemma is similar -- I spent a few days making a simple program, and now I have to actually deliver to the customer, and I find out it only works on the specific computer that the program is built on.  Perhaps I should have bundled VS8.0 with the sale of the product.  Bad enough it doesn't build on VS 7.0, or that the compiler flags have gotten so complicated that I can't get a release version out, but how do I get my executable to my customer!!!</p> <p>So, what is listed as &quot;the solution&quot; for this problem has no effect on the ability for me to be able to execute my program on another system.  I have three systems, all with VS8 (Pro), and I had to build on each system for them to be able to execute.  My question, is there a way to get more information to help indicate what the actual problem is?  Is there any way to get an executable out of VS8 that is self-contained enough to execute wherever I want?  I want an executable file, not a set of files I need to build and manage an installation for.</p> <p>With VS8 pro, the dll files listed above were already in the appointed place, and the manifest was identical to the one listed above, so I just zipped it up and plopped it in the directory where my exe was, and voila, I get the same error message as before. &quot;This application has failed to start because the application configuration is incorrect.  Reinstalling the application may fix this problem.&quot;</p> <p>Any help would be great -- sorry for any misdirected sarcasm.  I am just a bit frustrated.</p> <p>Thanks,</p> <p>-Kevin</p>Fri, 16 Feb 2007 17:20:45 Z2007-02-16T17:20:45Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#4bfb8a1e-89ca-44bb-9545-541e31877e16http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#4bfb8a1e-89ca-44bb-9545-541e31877e16Eyal Amirhttp://social.msdn.microsoft.com/Profile/en-US/?user=Eyal%20AmirRunning a very simple Win32 app on a comp without VC++ 2005 Express<p>This is my manifest:</p> <p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;<br>&lt;assembly xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot; manifestVersion=&quot;1.0&quot;&gt;<br>  &lt;dependency&gt;<br>    &lt;dependentAssembly&gt;<br>      &lt;assemblyIdentity type=&quot;win32&quot; name=&quot;Microsoft.VC80.CRT&quot; version=&quot;8.0.50727.762&quot; processorArchitecture=&quot;x86&quot; publicKeyToken=&quot;1fc8b3b9a1e18e3b&quot;&gt;&lt;/assemblyIdentity&gt;<br>    &lt;/dependentAssembly&gt;<br>  &lt;/dependency&gt;<br>  &lt;dependency&gt;<br>    &lt;dependentAssembly&gt;<br>      &lt;assemblyIdentity type=&quot;win32&quot; name=&quot;Microsoft.VC80.CRT&quot; version=&quot;8.0.50608.0&quot; processorArchitecture=&quot;x86&quot; publicKeyToken=&quot;1fc8b3b9a1e18e3b&quot;&gt;&lt;/assemblyIdentity&gt;<br>    &lt;/dependentAssembly&gt;<br>  &lt;/dependency&gt;<br>&lt;/assembly&gt;</p> <p>Does anyone have any idea why it's putting two different versions of the CRT library in the manifest?  This is VS2005 with SP1.  When I delete the reference to the old version (i.e. 50608), deployment works fine.</p>Thu, 01 Mar 2007 03:16:30 Z2007-03-01T03:16:30Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#4b1dc704-8fc4-4963-ae3b-247fa20f28bchttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#4b1dc704-8fc4-4963-ae3b-247fa20f28bcTed_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 ExpressYou probably are linking to a static library that was built with a version of VC 2005 prior to SP1.  I made the same mistake early on, but then realized that all static libraries (under my control) must be rebuilt with SP1.Thu, 01 Mar 2007 18:26:30 Z2007-03-01T18:26:30Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#9e9a6e95-6ca8-4d34-8360-150b1bef9d4ehttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#9e9a6e95-6ca8-4d34-8360-150b1bef9d4eEyal Amirhttp://social.msdn.microsoft.com/Profile/en-US/?user=Eyal%20AmirRunning a very simple Win32 app on a comp without VC++ 2005 ExpressWhat do you do if it's not under your control?  Are you forced to use something like _USE_RTM_VERSION at that point until the library provider recompiles?Thu, 01 Mar 2007 18:38:50 Z2007-03-01T18:38:50Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#1923cf1b-ce51-49ad-97b1-8b8906f219c0http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#1923cf1b-ce51-49ad-97b1-8b8906f219c0Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<p>Yes, that's correct.  But a quick warning, _USE_RTM_VERSION doesn't work properly with MFC DLLs.   I brought it to their attention but alas, any further fixes to _USE_RTM_VERSION were rejected:</p> <p><a title="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=247057" href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=247057">http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=247057</a></p> <p> </p>Thu, 01 Mar 2007 21:17:28 Z2007-03-01T21:17:28Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#1ac5f736-57ce-417b-9b0c-1ba608d44a10http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#1ac5f736-57ce-417b-9b0c-1ba608d44a10Terry Gotohttp://social.msdn.microsoft.com/Profile/en-US/?user=Terry%20GotoRunning a very simple Win32 app on a comp without VC++ 2005 Express<p>For now un-insatll current express and re-install from web site again to go BACK to lower build number of express</p> <p>this workd for me...for now</p>Mon, 05 Mar 2007 19:22:30 Z2007-03-05T19:22:30Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#d3a62a57-4fbd-42a2-b845-20358fc8c4adhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#d3a62a57-4fbd-42a2-b845-20358fc8c4adPoLRoPhttp://social.msdn.microsoft.com/Profile/en-US/?user=PoLRoPRunning a very simple Win32 app on a comp without VC++ 2005 ExpressHi Ted,<br><br>Thanks, for this very clear explanation. However, I'm still wondering whether it's allowed to distribute these files with a commercial application because they are included neither in the redist directory nor in the NoRedist directory.<br><br>Thanks in advance,<br><br>Tue, 06 Mar 2007 12:18:29 Z2007-03-06T12:18:29Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#3d2952a6-3910-45cc-bf79-ac8a0c394e00http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#3d2952a6-3910-45cc-bf79-ac8a0c394e00tharrishttp://social.msdn.microsoft.com/Profile/en-US/?user=tharrisRunning a very simple Win32 app on a comp without VC++ 2005 ExpressI have been having trouble with deploying my VC ++ Express Edition applications also.  I followed all of the steps that where mentioned in your post and still have not been able to get my application to run!Thu, 17 May 2007 15:52:08 Z2007-05-17T15:52:08Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#91466140-6079-4fc9-9dae-f261600b9b5bhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#91466140-6079-4fc9-9dae-f261600b9b5btharrishttp://social.msdn.microsoft.com/Profile/en-US/?user=tharrisRunning a very simple Win32 app on a comp without VC++ 2005 Express<p> Hi TED,  </p> <p>I just posted a message concerning the method you described to distribute applications written with Visual C++ Express Edition.  I am new to the forum and was not sure my message posted.  However, even after performing all of the steps  I can not get my application to run.  Any suggustions?</p>Thu, 17 May 2007 16:02:16 Z2007-05-17T16:02:16Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#749eb27c-349c-44c9-8518-2a56f0c5eb9dhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#749eb27c-349c-44c9-8518-2a56f0c5eb9dTed_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<p>hi  tharris, just download and install these two things on the machine you're having problems on and it will run fine:</p> <p> </p><span> <p><a title="http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&amp;displaylang=en</a></p> <p> </p> <p><a title="http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&amp;displaylang=en</a></p></span>Thu, 17 May 2007 18:57:19 Z2007-05-17T18:57:19Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#46cee224-93de-4f88-9b5a-8d9c855fa2d6http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#46cee224-93de-4f88-9b5a-8d9c855fa2d6Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<p>to all those reading this thread and are trying to run RELEASE versions of your software (not debug): </p> <p> </p> <p><span>forget about all other methods.  Download and install both of these and all problems will go away:</p> <p> </p> <p>non SP1 version</p> <p><a title="http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&amp;displaylang=en</a></p> <p> </p> <p>SP1 version:</p> <p><a title="http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&amp;displaylang=en</a></p></span>Thu, 17 May 2007 18:58:43 Z2007-05-17T18:58:52Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#c29d34dc-b314-4fc5-ab29-2c1fd7615261http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#c29d34dc-b314-4fc5-ab29-2c1fd7615261Holger_Burbachhttp://social.msdn.microsoft.com/Profile/en-US/?user=Holger_BurbachRunning a very simple Win32 app on a comp without VC++ 2005 ExpressI have the same problem in combination with Java WebStart. I got it working on my development computer by putting a manifest file named javaw.exe in the bin directory of the java runtime environment. The contents of the file are similar to the one mentioned above. In addition I had to include msvcr80.dll and a manifest file named Microsoft.VC80.CRT.manifest with similar contents in the .jar file containing the native libraries of the WebStart application. Unfortunately it does not yet work on computers without VC++ Express. I am still struggling. Can anybody give me a hint?Wed, 06 Jun 2007 16:03:28 Z2007-06-06T16:03:28Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#80fbef86-f60e-4ba3-9927-d8539b5f9c30http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#80fbef86-f60e-4ba3-9927-d8539b5f9c30SheetalShttp://social.msdn.microsoft.com/Profile/en-US/?user=SheetalSRunning a very simple Win32 app on a comp without VC++ 2005 Express<p>Thanx TED and everyone on this thread.. It helped a lot. I was facing  similar problem and tried everything mentioned here. </p> <p>I have a simple solution for VC express users.. Try changing debug mode to Release in configuration and try compiling the file.</p> <p>It solved my problem</p> <p>Thanx again..!!</p> <p> </p> <p>~SS</p>Thu, 21 Jun 2007 22:55:42 Z2007-06-21T22:55:42Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#596a2352-8123-4d32-8189-4794a222d25fhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#596a2352-8123-4d32-8189-4794a222d25fidyllic1981http://social.msdn.microsoft.com/Profile/en-US/?user=idyllic1981Running a very simple Win32 app on a comp without VC++ 2005 Express<p>My program is using 2 VC++ DLLs.</p> <p>one.dll is calling two.dll.</p> <p>It working fine on my computer.</p> <p>But it is not working on the target computer. I have to paste this two.dll in the c:\windows\system32 folder.</p> <p>Then it is working.</p> <p> </p> <p>Can anyone elaborate on what all changes I have to make in the manifest setting so that it will pick up the two.dll from the same application folder where one.dll is present.</p> <p> </p>Tue, 17 Jul 2007 07:10:09 Z2007-07-17T07:10:09Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#b7790f37-f890-4f8f-be8e-df61ba022b62http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#b7790f37-f890-4f8f-be8e-df61ba022b62nirvansk815http://social.msdn.microsoft.com/Profile/en-US/?user=nirvansk815Running a very simple Win32 app on a comp without VC++ 2005 ExpressI had the same problem. Just needed to install the latest <basefont> <h1>Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)</h1><basefont>File Name: vcredist_x86.exe <br>Version: 8.0.50727.762 Date <br>Published: 4/10/2007 <br>Language: English Download Size: 2.6 MB<br><br>http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&amp;displaylang=en<br><br><br><br>Hope this helps.<br> <table dir=ltr cellspacing=0 cellpadding=0 width="100%" border=0> <tbody> <tr valign=top> <td dir=ltr width="100%"> <div class=pageMargin id=details> <div id=unRestricted> <div id=quickInfoContents> <table cellspacing=0 cellpadding=0 border=0> <tbody></tbody></table></div></div></div><br></td></tr></tbody></table><br><br> <table dir=ltr cellspacing=0 cellpadding=0 width="100%" border=0> <tbody> <tr valign=top> <td dir=ltr width="100%"><br></td></tr></tbody></table>Fri, 03 Aug 2007 20:58:44 Z2007-08-03T20:58:44Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#c84be2d1-48b2-4392-9782-b5f54c930f61http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#c84be2d1-48b2-4392-9782-b5f54c930f61Arun5000http://social.msdn.microsoft.com/Profile/en-US/?user=Arun5000Running a very simple Win32 app on a comp without VC++ 2005 Express<p>Ted, thanks, this worked for me for running my app on a system running winXP.  But I tried running the same procedure running my app on a system running Windows NT 4.0 and I get the following error message:  &quot;The procedure entry point GetLocalPathName could not be located in the dynamic link library Kernel32.dll&quot;.  I need to run this on systems which are running NT 4.0.  Would greatly appreciate anyone's help.  Thanks.</p> <p align=left><font face=Arial size=2></font> </p>Mon, 01 Oct 2007 23:20:20 Z2007-10-01T23:20:20Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#d79f087e-a4a4-4624-bb91-64344cedd416http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#d79f087e-a4a4-4624-bb91-64344cedd416Ted_http://social.msdn.microsoft.com/Profile/en-US/?user=Ted_Running a very simple Win32 app on a comp without VC++ 2005 Express<p align=left><span class=inlineLink>Arun5000, you'll need to upgrade to a version of Visual C++ 2005 that supports static linking to the CRT, or you can try rebuilding the CRT libraries using these instructions</span></p> <p align=left><span class=inlineLink></span> </p><span class=inlineLink> <p><a title="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=146362&amp;SiteID=1" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=146362&amp;SiteID=1"><font color="#9136ad">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=146362&amp;SiteID=1</font></a></p></span>Wed, 03 Oct 2007 19:03:57 Z2007-10-03T19:03:57Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#24c03f84-955b-4f95-86da-846f6efdf07dhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#24c03f84-955b-4f95-86da-846f6efdf07dKarin Meierhttp://social.msdn.microsoft.com/Profile/en-US/?user=Karin%20MeierRunning a very simple Win32 app on a comp without VC++ 2005 Express<span><strong>Using Visual C++ 2008 Express with the Windows SDK (previously known as the PSDK)</strong> <p> </p> <p align=left> <table cellspacing=0 cellpadding=0 border=0> <tbody> <tr> <td width="100%"> <p class=MsoNormal style="margin:0in 0in 0pt"><font size=3><font face=Calibri><span style="color:black">Read <a title="http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=2888039&amp;SiteID=1" href="http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=2888039&amp;SiteID=1">this forum post for a description of what you need to do </a>to build Win32 applications using Visual C++ Express and the <i>Windows SDK for Windows Server 2008 and .NET Framework 3.5</i>.<span>  </span></span><span style="color:windowtext">A more <a class="" title="more detailed version of this article" href="http://blogs.msdn.com/windowssdk/archive/2008/02/22/using-visual-c-2008-express-with-the-windows-sdk-detailed-version.aspx"><font color="#013da4">detailed explanation including screenshots can be found here</font></a>. </span></font></font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><b><span style="color:windowtext"><font face=Calibri size=3></font></span></b> </p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="color:black"><font size=3><font face=Calibri>With the Visual Studio 2008 Express versions you can build Win32 applications right out of the box.<span>  </span>You no longer have to manually integrate the Windows SDK content with VC++ Express.</font></font></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="color:black"><font face=Calibri size=3></font></span> </p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="color:black"><font face=Calibri size=3>The Visual Studio 2008 editions are </font></span><a title="http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx" href="http://blogs.msdn.com/windowssdk/archive/2007/11/30/released-visual-studio-2008-with-embedded-windows-sdk-components.aspx"><span><font face=Calibri color="#013da4" size=3>seamlessly integrated with the Windows SDK</font></span></a><span style="color:black"><font face=Calibri size=3>.<span>  </span>VS2008 editions include the same Vista RTM headers and libraries that shipped in the </font></span><a title="http://www.microsoft.com/downloads/details.aspx?familyid=4377F86D-C913-4B5C-B87E-EF72E5B4E065&amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?familyid=4377F86D-C913-4B5C-B87E-EF72E5B4E065&amp;displaylang=en"><span><font face=Calibri color="#0000ff" size=3>Microsoft Windows <span> </span>Software Development Kit Update for Windows Vista</font></span></a><span style="color:black"><font size=3><font face=Calibri> released in March, 2007. The SDK tools included with VS2008 editions are more recent than those that ship in the Vista Update SDK and the Windows Server 2003 Platform SDK.</font></font></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="color:black"><font face=Calibri size=3></font></span> </p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="color:black"><font face=Calibri size=3>If you install another SDK, such as the </font></span><a title="http://blogs.msdn.com/windowssdk/archive/2008/02/07/windows-sdk-rtms.aspx" href="http://blogs.msdn.com/windowssdk/archive/2008/02/07/windows-sdk-rtms.aspx"><span><font face=Calibri color="#013da4" size=3>Windows SDK for Windows Server 2008 and .NET Framework 3.5</font></span></a><span style="color:black"><font size=3><font face=Calibri> after you install VS, you are ready to develop with the headers, libraries and tools in the SDK for Windows Server 2008.<span>  </span>Read <a title="http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=2888039&amp;SiteID=1" href="http://forums.microsoft.com/Forums/ShowPost.aspx?PostID=2888039&amp;SiteID=1">this forum post </a>if you installed the SDK before installing Visual Studio.<span>  </span>(It’s easy to switch back if you want.)<span>  </span></font></font></span></p> <p class=MsoNormal style="margin:0in 0in 0pt" align=left><span style="color:black"><font size=3><font face=Calibri><span></span></font></font></span> </p> <blockquote dir=ltr style="margin-right:0px"> <div class=BlogPostContent align=left><strong><font color="#984806"><font face=Calibri>      K a r i n<span>   </span>M e i e r<span style="color:#0070c0"></span></font></font></strong></div></blockquote> <p class=MsoNormal style="margin:0in 0in 0pt" align=left><font size=3><font face=Calibri><span style="color:#548dd4">Windows SDK<b> </b></span><b><span style="color:#e36c0a">|</span></b><b><span style="color:#365f91"> </span></b><span style="color:#9bbb59">Samples &amp; Community</span><span><font color="#984806"> </font></span><span style="color:#4f81bd">PM</span><span style="color:#632423"></span></font></font></p> <p class=MsoNormal style="margin:0in 0in 0pt;text-indent:0.5in" align=left><span style="font-size:8pt"><a title="http://blogs.msdn.com/KarinM" href="http://blogs.msdn.com/karinm"><span style="color:#984806"><font face=Calibri>http://blogs.msdn.com/KarinM</font></span></a><font color="#984806"><font face=Calibri> </font></font></span></p></td></tr></tbody></table></p></span> <p align=left><font face=Arial size=2></font> </p>Fri, 22 Feb 2008 06:31:18 Z2008-02-22T06:31:18Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#e2546eac-73a8-4af3-ac45-14c97abb711bhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#e2546eac-73a8-4af3-ac45-14c97abb711bKhoroohttp://social.msdn.microsoft.com/Profile/en-US/?user=KhorooRunning a very simple Win32 app on a comp without VC++ 2005 ExpressHi,<br> <br> Just go through the link below.....<br> http://blogs.msdn.com/jreddy/archive/2005/12/23/troubleshooting-c-c-isolated-applications-and-side-by-side-assemblies-scenario-based-with-solutions.aspx<br> <br> I solved my problem by chaning the version number as mentioned.<br> There are other solutions too. <br> Try out..All the best !!<br> <br> __Khoroo<br> <br> Mon, 30 Jun 2008 09:06:21 Z2008-06-30T09:06:21Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#ee6e98da-1aee-4921-9c58-57366ef4f2behttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#ee6e98da-1aee-4921-9c58-57366ef4f2beMattyClarksonhttp://social.msdn.microsoft.com/Profile/en-US/?user=MattyClarksonRunning a very simple Win32 app on a comp without VC++ 2005 ExpressI finally got around to using learning .NET C++/CLI and creating a program in VC++2008EE.  A great free tool and one I've been having fun getting around over the last month.<br> <br> Once completed I used <a title="Nullsoft Scriptable Install System" href="http://nsis.sourceforge.net/Main_Page">NSIS</a> to create an install program.<br> <br> Obviously worked on my computer with the Visual Studio installed on.  But received the &quot;This application has failed to start because the application configuration is incorrect.  Reinstalling the application may fix this problem&quot;  when trying to run on another computer.<br> <br> This thread really helped me with working out what I needed to do to resolve this problem.  I thought that I would just post what I have learnt in case anyone else is in the same situation.<br> <br> First stop was <a title="Nikola Dudar's WebLog" href="http://blogs.msdn.com/nikolad/archive/2005/09/02/460368.aspx">Nikola Dudar's WebLog</a> and three important points:<br> <br> <p style="margin:0in 0in 0pt" class=MsoNormal><i>There are three ways to get an application built with VC++ Express...</i></p> <ol> <li> <p><i>Ask user of that computer to install  <a title="Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2&amp;DisplayLang=en">Visual C++ Redistributable Package</a>...</i></p> </li> <li> <p><i>Build another installer of VC++ libraries using Redistributable Merge Modules installed by VC++ Express into Common Files\Merge Modules...</i></p> </li> <li> <p><i>Statically link your application to VC++ libraries...</i></p> </li> </ol> Summarizing:<br> <br> PROS: Installs everything that will be needed to deploy a VC++ 2008 project onto any machine<br> CONS: Bulky to include when you only really need CFT for VC++2008EE applications<br> <br> PROS: Can create an installer that just has the correct modules needed for your program<br> CONS: Need to understand <a title="Windows Installer XML (WiX) toolset" href="http://wix.sourceforge.net/">WIX </a>to create the installer (not hard but I didn't have the time<br> <br> PROS: Can include just the modules you need<br> CONS: Included in your program folder, bulking out you install.  Can only use the installed modules and not benefit from updates to the shared modules like the above two methods.<br> <br> The third option was excluded for the above reasons.<br> <br> I was left to somehow integrate the modules into my NSIS installer.<br> <br> I found a <a title="Aaron Stebner's WebLog" href="http://blogs.msdn.com/astebner/archive/2006/08/23/715755.aspx">blog</a> that showed how to run the <a title="Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2&amp;DisplayLang=en">redistributable</a> in a silent install mode.<br> <br> This would allow me to incorporate the redistributable into my NSIS installer.<br> <br> This then posed another problem - what if the user already has it installed?<br> <br> I found a <a href="http://seclists.org/nmap-dev/2008/q3/att-0743/">.nsi script</a> that had an example of a conditional silent install.<br><br>I then went through the registry to find the correct key for the above redistribution: <br>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9A25302D-30C0-39D9-BD6F-21E6EC160475}<br><br>And used that to condionally install the package within my NSIS installer.<br><br>I now have a installer that will create an environment for my VC++2008EE compiled .exe to run on any machine with .NET installed.<br><br>-----------------<br><br>Notes:<br><br><ul><li>If I do this again I will look into creating a WIX package with just what I need but to be honest I will probably get VS2008 Pro before the next project!</li></ul><ul><li>As an additional note there is <a href="http://kobyk.wordpress.com/2008/04/12/deploying-the-visual-c-libraries-with-an-nsis-installer/" title="Deploying the Visual C++ libraries with an NSIS installer">this webpage</a> that explains how to redistribute the modules within the NSIS installer.  Only tested with 2005 (v8.0) dlls tho.</li></ul><ul><li>If you're a student reading this (most likely if you're using the Express Editions) you can sign up for the <a href="https://downloads.channel8.msdn.com/" title="Professional Developer and Designer tools for students at no charge ">Microsoft Dreamspark</a> to get Microsoft software for free, including VS2008 Pro.  As a student that has just graduated and finding out about this initiative I thought I'd try to spread the word...</li></ul><br> Thu, 09 Oct 2008 15:13:53 Z2008-10-09T15:13:53Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#1818a7de-4eac-41b2-b4dc-ee2eea087f12http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#1818a7de-4eac-41b2-b4dc-ee2eea087f12FisherBhttp://social.msdn.microsoft.com/Profile/en-US/?user=FisherBRunning a very simple Win32 app on a comp without VC++ 2005 Express<p>I have built my executable with Visual Studio 8 and the application works fine on Vista or Win7 but does not work on XP. I am using the recipe described except that the file names are msvcr90.dll, msvcp90.dll and msvcm90.dll. Any ideas how I can get this to run on XP?<br/>Regards,<br/>Barry</p>Thu, 02 Jul 2009 15:09:56 Z2009-07-02T15:09:56Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#737d6754-e84d-40c3-b09f-0ef3a9edb7echttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/66bc8cab-c134-49a8-85e5-37ca9efbdeb4#737d6754-e84d-40c3-b09f-0ef3a9edb7ecjinzaihttp://social.msdn.microsoft.com/Profile/en-US/?user=jinzaiRunning a very simple Win32 app on a comp without VC++ 2005 Express@FisherB (Thread resurrector)<br/><br/>You are using VisualStudio 2008 (That is 9...8 is VS2005, which is what this thread is mostly about.) Ted's answer is still valid (I think!), but this is being handled with merge modules now...they are in Program Files\Common Files\Merge Modules. This is an attempt to provide a tools for creating MSI installation to alleviate this condition you are seeing.<br/><br/>What is going on is that you've got a C runtime targeted that is newer than the ones in XP. (Mine uses version 7.0.2600.5512, and it is XP Professional, Version 2002, SP 3.<br/><br/>I assume that you are using .NET framework, which means that you must use dynamic linking on this particular DLL. (It is a requirement of the CLR, so you would have to dump use of CLR to link statically to the c runtime [sigh!].<br/><br/>I don't know if it is a better fix to install the newer C runtime in XP, nor what the point would be. I think we might be at a hard line between using .NET and targeting older OSes, like XP. (Say it ain't so, MS! That foot has a lot of holes in it already.)Thu, 02 Jul 2009 19:28:23 Z2009-07-02T19:28:23Z