Web Connection
Migrating v6.x to v8.x
Gravatar is a globally recognized avatar based on your email address. Migrating v6.x to v8.x
  Steve
  All
  Oct 17, 2025 @ 11:17am

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

Gravatar is a globally recognized avatar based on your email address. re: Migrating v6.x to v8.x
  Steve
  Steve
  Oct 17, 2025 @ 05:00pm

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

Gravatar is a globally recognized avatar based on your email address. re: Migrating v6.x to v8.x
  Rick Strahl
  Steve
  Oct 18, 2025 @ 09:54am

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 ---

Gravatar is a globally recognized avatar based on your email address. re: Migrating v6.x to v8.x
  Steve
  Steve
  Oct 19, 2025 @ 07:18am

Thanks for the clarification Rick.

Actually, the wwBusiness.vcx was not in the \Classes\OldFiles folder, but was in the \Classes folder, at least for me. Perhaps I mucked it up during the copy or something.

Thanks again,
Steve

Gravatar is a globally recognized avatar based on your email address. re: Migrating v6.x to v8.x
  Rick Strahl
  Steve
  Oct 20, 2025 @ 09:50am

Thanks for checking. Looks like for some reason wwBusiness.vcx was removed altogether in the latest release version of Client Tools - by accident. It should be in the classes\OldFiles folder. I've put this back for the next update.

Whatever version of wwBusiness.vcx/.vct you have is likely to be the last version that was available (2018) and it's a left over from a previous install which will be fine.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Migrating v6.x to v8.x
  Steve
  Rick Strahl
  Oct 20, 2025 @ 10:08am

Thanks Rick. I actually updated my app to use the wwBusinessObject component. It was really very easy. Just had to change a couple of lines in a few places. I'm trying to get everything working with the latest version of WWWC. This project has been a longterm development/test project. It's never gone into production, but it hopefully will fairly soon. I badly need a Web Version of my VFP Desktop app, or at least web access to certain parts of it. So, I dusted off this project a couple months ago and am trying like heck to keep it moving forward. You've made the process pretty darn easy with all the great features of WWWC, especially since v6.x was released!! And the TimeTrakker Sample app provides examples of most of what I need. I can't say enough good things about the WWWC tool, the docs, the samples, etc... Really cool stuff!!

Steve

Gravatar is a globally recognized avatar based on your email address. re: Migrating v6.x to v8.x
  Rick Strahl
  Steve
  Oct 20, 2025 @ 11:24am

Thanks Steve... appreciate the kind words.

Aloha,

+++ Rick ---

© 1996-2025