| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to convert VC++ project to a distributable exe ???
Hello ppl
i am new to vc++, and i would like to know How do i convert my VC++ project files to distributable "exe" i would like to distribute my software, so how do i get an exe, or whatever . thankx |
|
#3
|
|||
|
|||
|
before you distribute your software, make sure that it's release version (Build->Build Configuration - Release version), otherwise the .exe will not run on other machines, unless they have the debug version of MFC of course (mfc42d.dll).
__________________
Courage is no the absence of Fear... it is the presence of fear, but the will to keep going! |
|
#4
|
||||
|
||||
|
Re: How to convert VC++ project to a distributable exe ???
Quote:
As for whatever? I do not know how to get whatever.
__________________
There are only 10 types of people in the world: Those who understand binary and those who do not. Warning! There's nothing more dangerous than a resourceful idiot. |
|
#5
|
||||
|
||||
|
Re: Re: How to convert VC++ project to a distributable exe ???
Quote:
__________________
Ovidiu Cucu
|
|
#6
|
|||
|
|||
|
my vc++ program runs fine and is executing.
now i want my program to run from any other machine, which does not have Visual studio 6.0. i want to create a Standalone Application i have installed Visual studio Installer 1.1 what do i do next.... do i have to use the installer. ( any tutorial to convert VC++ Project). i see a lot of examples using VB. |
|
#7
|
||||
|
||||
|
It seems that you have a single executable file.
Just make a release build. It will be "standalone" and you have not to redistribute other runtime libraries as for a VB program.
__________________
Ovidiu Cucu
|
|
#8
|
|||
|
|||
|
ok now help with this.
whenever i take my executable say "abc.exe", to some other machine it gives me an error... ERROR STARTING PROGRAM A Required .DLL file, MFC42D.DLL, was not found I start with an Empty Intaller Project.... now what are the files that i should add to this EmptY Installer, so that i can have my application running. i.e abc.dsp, abc.dsw, abc.exe... any DLL's to put in what...? i dont know what to do ? i have never used Visual Studio Installer before. also pls tell me what are the files required from the project, so that my application can anywhere. ( on a machine which does not have Visual Studio Installed) . Is it just the EXE that i need to take to the other Machine in order to test it. cause i got the above mentioned error, when i did that. pls help thankx Last edited by Dhiru; July 9th, 2004 at 07:56 AM. |
|
#9
|
||||
|
||||
|
Quote:
MFC42.DLL is available on machines having IE4+ installed. |
|
#10
|
||||
|
||||
|
Quote:
Now, what you can do is, change ur settings and statically link them. Your exeutable size will increase, but will run on the other machines. Also, y not you try some distribution software like InstallShield or Inno Setup. Its really great and easy to use.
__________________
Regards, Ejaz. Browse Articles, Read AUP, Use Code Tags, Check FAQs How To Ask Questions The Smart Way? |
|
#11
|
||||
|
||||
|
For sure you have built the debug version (see what hspc have posted).
So, select "Build\SetActive configuration" menu item and choose "<your proj. name> - Win32 Release" from the list. Then, rebuild the project. It's not needed to statically link the MFC libraries.
__________________
Ovidiu Cucu
|
|
#12
|
|||
|
|||
|
thankx to all of u ppl for the help.
anyways, now i made the changes. Build->Set ActiveConfiguration->W32 Release... i get the following errors.... abc.obj : error LNK2001: unresolved external symbol _WNetCloseEnum@4 abc.obj : error LNK2001: unresolved external symbol _WNetOpenEnumA@20 abc.obj : error LNK2001: unresolved external symbol _WNetEnumResourceA@16 ServInfo.obj : error LNK2001: unresolved external symbol __imp__inet_ntoa@4 ServInfo.obj : error LNK2001: unresolved external symbol __imp__gethostbyname@4 Release/abc.exe : fatal error LNK1120: 5 unresolved externals Error executing link.exe. i dont seem to get these errors if the configuration is set to Debug . what am i supposed to do. and one more thing, is there any book which will give me all the details. |
|
#13
|
|||
|
|||
|
For Distributed EXE
Hi,
Actually in VB there is one Tool like Package And Deployment to distribute ur EXE..It will Create the Setup Program... Similarly For VC++ there is InstallShield program to build like Setup Program... There will be help file how to do follow steps.. Please Go through it... U can Install with MSVisual Studio 6.0 With regards.. Kumar |
|
#14
|
||||
|
||||
|
Quote:
__________________
Regards, Ejaz. Browse Articles, Read AUP, Use Code Tags, Check FAQs How To Ask Questions The Smart Way? |
|
#15
|
|||
|
|||
|
even though i make my application a "W32 Release"
i still get the following error, when i execute my exe on some other PC. A Required .DLL, MFC42D.DLL, was not found. what do i need to do so that my exe runs anywhere. i also tried to link all DLL's Statically, but i still get the error. I dont get any error on my PC |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|