Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quick Start did not create Application Class
Message
 
To
15/01/1999 09:57:37
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00176270
Message ID:
00176699
Views:
36
>>Just purchased MM for VFP 6.0 yesterday. Followed the chapter "Creating a New Application Using Quick Start". Compiled the app (TndMgt.PJX); upon startup of the app I get an error "Class Definition tndmgt is not found. I looked in the class section of the project and it is not there. I ran a find for tndmgt.vcx on the volume that MM is installed to which is the same volume the app was created into and it is not there.
>>
>
>Ron,
>
>The class should be in aapp.vcx
>
>Make sure it is in your project.
>
>Make sure that you have debug.txt in your main project directory.... this will cause the metadata to be rebuilt. The metadata contains all the class libraries and prgs in your project, and is used to build a list of class libs for the set classlib to line.
>
>>Looking for some ideas. Thanks
>
>You are also running do startcb from the root directory of your project.
>
>Let me know if the above helps.
>
>BOb

Bob,

Thanks for the reply. I tooled around last night for three hours and did find the tndmgt class. It originally did not occur to me to look for the tndmgt class as a subclass. I have studied OOP and VFP for several years (Had to much Fox 26 work to support) but actually working with it is a bigger mental leap than I could have imagined.

After I tried everything I could, I decided to just tool around see what I could learn. I discovered it by accident.

Once I found "tndmgt" I knew that it being missing was not the problem so I began to look around in the app startup code and discoverd that in the main.prg that was created there was the following piece of code:

DO [COMMONPATH\PROGS\Setup]

I knew what was going on here but it did not make sense that since the setup.prg was bound into the project there was no reason to have a path. I removed the path and it fixed the problem.

1). What is being attepted here with this path being hardcoded in ?
2). How did the program run past this point to error in setup.prg when the above path is incorrect to my install ?
3). Since the program continued to run past this point why did the exe not find tndmgt when it was bound into the project ? How did this path confuse Fox at runtime ? It found tndmgt after I removed the path !
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.

Riddley Walker
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform