<i><font color="#663300"><i><font color="#663300">I have set my resource file in VFP6 and when I initially startup VFP and work on a CB project alls well. I DO main work with the CB app and return and the resource file is no longer working as it should. What should I do to keep the resource file working after exiting CB app? </font></i>
You have to do <code>SET RESOURCE ON</code> to restore the settings. I'm adding that to the code for Setup.PRG so that this will be done automatically.
</font></i>
Ed,
I just went through setup of a new project and noted a few fixes that could help some of the newbies to CB have a 'more enjoyable computing experience'. I'd like to help get these into the download version. I'll be glad to do the work and get it to you if you'll let me know how you want to work it.
Using Codebook version 6.1, errors occurred with the setup of a new project. This is a list of those errors found after running newapp, startcb(.t.) setincl and startcb(.t.) again.
Here are the problems:
Error #1 When running DO Main.prg, error on <File> menu. FIX: ctmenus.vcx and itmenus.vcx cfilepopup and ifilepopup classes( misspelled class name in cChildList property, cFileUserrefBar to cFileUserPrefBar in both classes.
Error #2 Resource file is not restored in development environment when returning to VFP. FIX: Fixed Setup.Prg to track the original setting of SET RESOURCE and restoring the original setting before leaving.
Error #3 Error occurred when choosing the 'Print Reports...' option from the <File> menu. iReportForm class was not found. FIX: iCustFrm.vcx was not included in the project, added it.
Error #4 Error occurred when choosing the 'Print Reports...' option from the <File> menu. SAVISECURITYLABELFORREPORTS class was not found. FIX: Added CSecure.vcx to the project. Then, found that CReportForm.CreateSecureReportListTable() contains the wrong class name SAVISECURITYLABELFORREPORTS, instead of CSECURITYLABELFORREPORTS.
Error #5 Error occurred when choosing the 'About <Project Name>...' option from the <Help> menu. iAboutForm class was not found. FIX: iCustFrm.vcx was not included in the project.
Error #6 Error occurred when choosing the 'About <Project Name>...' option from the <Help> menu. File 'getfileversion.prg' does not exist. This was apparently a procedure written prior to VFP's AGETFILEVERSION() function and referenced FoxTools function. Changed code in cAboutForm.Init() to ref. the new funciton. NOTE: This was previously using the FoxTools.dll procedure.
This one is not an error but more of a problem #7 After running the app and exiting to the dev environment, the original path gets lost and some of the flashstd menu options no longer work. The reason is the release of the gcOldPath variable in Setup.Prg after the creation of the goApp object. This variable should remain in the development environment and be reset during the Cleanup section of the Setup.Prg.
Thanks, Paul ©2001 Paul D Hardy |