Changing Application name and help files names.
Posted on 2002-03-20
I have an MDI VC++6 application. When I built the last version a couple of years ago, I foolishly named it something like MyApp30, so all the cpps, etc are named MyApp30.cpp. When I compile it, of course, it creates MyApp30.exe and MyApp30.hlp, .cnt, etc. Now I'm creating version 4.0 and want to use the same classes, project, etc. but change the executable and help files to MyApp40. I changed the output name to MyApp40.exe in Settings and changed MyApp30 to MyApp40 anywhere else I could find short of changing the class names and file names within the project.
My problem is that the help files are still named MyApp30. I saved the .dsw, .dsp, .hm, etc. as MyApp40. I changed MyApp30 to MyApp40 inside Help Workshop. Frankly, I just started changing 30 to 40 everywhere I could find it - even inside MakeHelp.bat. The result is that it compiles MyApp40.hlp and .cnt within the "hlp" folder (not in the Release or Debug folders) but when I try to execute the MyApp40.exe I get the following message:
"One or more files are out of date... These files need to be built. .\Release\MyApp30.hlp"
I tried changing m_pszHelpFilePath and m_pszAppName to MyApp40... in my app's InitInstance function and that didn't change things. I really have changed it to "40" everywhere I can think of short of changing the names of the classes and file names (a chore I'd like to avoid).
I'd like to have the compiler compile the 40 version and execute using the MyApp40.hlp files (I don't want to release with "MyApp30.hlp" files). Any ideas on what I'm missing. An overview of how to change an application's name and help files might help. Thanks in advance.