Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error: Visual Class Library This - Undefined
Message
 
 
To
21/10/2021 09:02:46
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01682560
Message ID:
01682574
Views:
24
>>>>Hi,
>>>>
>>>>I have made some changes to the program (nothing major). Then recompiled and rebuilt the application.
>>>>
>>>>Now, at the end of recompile, I get an error:
>>>>
>>>>Visual Class Library d:\applhome\libs\app_flds.vcx has the following errors:
>>>>    Visual Class Library THIS - Undefined
>>>>
>>>>
>>>>The odd thing is that I didn't make any changes to the app_flds.vcx. The library app_flds.vcx has many classes.
>>>>The changes were in some other libraries.
>>>>
>>>>How do you suggest I find the cause of the error above?
>>>>
>>>>TIA
>>>>
>>>>UPDATE. I found where I mistakenly added reference to the OLD VCX library.
>>>
>>>Hi Dmitry,
>>>Is it possible the VCX got corrupted? Maybe restore a backup and try again?
>>
>>Hi Frank,
>>It is possible that the VCX is corrupted. But it should not be in the project. This is an older VCX that I removed from the project some time ago. And when I was writing another code, I mistakenly added the reference to the older VCX to the project. Hence I was getting the error. Once I found my error, and corrected it, the older VCX is no longer in the project. So, the problem is gone.
>>Thank you.
>
>Just as a note, I'd seen this sort of problem occur when I bring in stuff from another program (say, an older program) into the project. This imported stuff (e.g. forms) may contain references to an older VCX. When I build the project, the references to the older VCX will get pulled into the project. In such a case I have to go into all the stuff I'd imported to remove the references (e.g. open the SCX, VCX, etc. as DBF and change the references to the older VCX within the classloc column to the newer one).

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform