Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why this message appears ?

Status
Not open for further replies.

capri1966

Programmer
May 13, 2010
57
ES
Hello, i've an application that run ok with VFP 6.0 and when i try to run from
VFP 9.0, appears the message 'C:\appdir\clases\misclass.vct is missing or invalid'.
In the project mamager, when i edit the misclass.vcx, only apears a litter bit of all
the components, the rest components are ingored. How i can repair this ?.
 
Your vcx seems broken. VCXes are also just DBFs with different file extension. VFP9 has introduced a bit of validation of tables, so it both will detect errors VFP6 ignores.

If the VCX still works in VFP6 use VFP6 to copy classes to a new VCX by creating a new library (eg by createing a dummy class) and dragging classes from the mixclass.vcx to the new.vcx within the project manager.
To do that, simply open both classslibs in the project manager treeview in the classes section and then visually drag class per class from the old vcx to the new one. This will copy over the essential records and hopefully the whole structure of the new.vcx will remain OK.

Then rename the misclass.vcx to _misclass.vcx and the new.vcx to misclass.vcx and see if VFP9 can open that classslib now.

If you have foxfix, this might also do the job. If you at least can USE misclass.vcx you will see what code you can save from the Method memo.

Good Luck!

Bye, Olaf.
 
Olaf addressed the class library issue you're seeing, but there's a more general issue you should probably note when moving from VFP6 to VFP9. VFP9's compiler is more picky.

There are small syntax errors that VFP6 would ignore, such as commas missing in parameter lists, but VFP9 will expect you to fix before it will compile. The .err file generated when you attempt a compile will give you a list of places to examine and fix.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top