[RESOLVED] How to rename an application ?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: [RESOLVED] How to rename an application ?

  1. #1
    Join Date
    May 2002
    Posts
    1,723

    [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

  2. #2
    Join Date
    Apr 2011
    Location
    Australia
    Posts
    18

    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.

  3. #3
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: How to rename an application ?

    Basically, you have to go to Linker > General > Output File and change the name there.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  4. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,091

    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?

  5. #5
    Join Date
    May 2002
    Posts
    1,723

    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

  6. #6
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Posts
    12,095

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center