Hi All,
I am getting the following error when I run my WWWC app in v8.x. It occurs when attempting to instantiate any business object. The business object was created using the 6.x Step-by-Step guide. Very standard business object. It's called by a process object, po_Customer calls bo_Customer.
Error Msg: Class definition WWBUSINESS is not found.
I upgraded to v8.x by backing up the WConnect folder into WConnect_v6, deleting all files from WConnect, then unzipping/coping the v8.x files into WConnect. If I copy the v6.x files back into WConnect, it works fine. The WWBusiness.vcx file is there in the \Classes folder for both v6.x and v8.x. I just confirmed I can instantiate the business object from the command window. So, maybe it's a pathing issue? Hmmm, I checked SET("PATH") and C:\WConnect\Classes; is the first entry. C:\WConnect; is the 2nd entry in the path.
Any ideas on what this might be?
Thanks,
Steve

OK, I figured out the issue. I needed to issue SET CLASSLIB TO wwBusiness ADDITIVE earlier in the app startup process. I'm not sure exactly why this is the case however.
Thanks,
Steve
In V7+ wwBusiness
has moved to wwBusinessObject.prg
. Same exact class interface (with some minor improvements), but it now lives in a PRG file. The old wwBusiness.vcx
is still available as well but it now lives in the .\classes\oldfiles
folder so you have to add that to your library/FoxPro path so it can be found
So you have two options:
- Convert to
wwBusinessObject
(Search and Replace in Files in a proper editor like VS Code) - Continue to use
wwBusiness
and either move VCX or add the Path to the Old files location
+++ Rick ---