-
April 7th, 2011, 04:54 PM
#1
[RESOLVED] How to rename an application ?
I have a Wizard-generated VS 2005 MFC DLL application. The application is named 'MyApp'. I wish to change the name of the application to 'YourApp'. I have laboriously renamed each file in the application directories and edited all the files, including the *.prj, *.ap, and other files. The renamed application compiles and runs, but the output is STILL 'MyApp.lib' and 'MyApp.dll'. I can manually rename the *.lib and *dll files and they run as expected, but I wish to have these files output as the renamed application would imply, namely 'YourApp.lib' and YourApp.dll'
Where does the naming of these output files reside and how can I change it without rewriting the whole program?
mpliam
-
April 7th, 2011, 07:54 PM
#2
Re: How to rename an application ?
In the projects settings you'll find output name for 'debug' and 'release'. Change it there and I would make output name for dedug version with D (YourAppD.dll) so you can put both dll files in the same folder if you need to.
-
April 8th, 2011, 01:32 AM
#3
Re: How to rename an application ?
Basically, you have to go to Linker > General > Output File and change the name there.
-
April 8th, 2011, 09:30 AM
#4
Re: How to rename an application ?
Sorry, but this shouldn't have been an issue in the first place. Why didn't you specify the correct name initially?
-
April 8th, 2011, 02:19 PM
#5
Re: How to rename an application ?
Why didn't you specify the correct name initially?
I dunno ?
Actually, there are quite a few places in the Property Pages of the application that you have to rename.
In addition to those noted by FockUSS,
Edited the *.dsp file which was full of initial name references
Change the output in the Property/C++/Precompiled Headers/
Change the : Linker/Debugging/Generate Program Database File/
Change : Linker/Advanced/Import Library
... to name but a few of them.
When you do all that, it seems to work as desired.
Thanks for your help.
mpliam
-
April 8th, 2011, 02:20 PM
#6
Re: How to rename an application ?
Depends if you just want to change the exe name or all the class and file names as well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|