Gary,
>I created a VCX version of the Codebook cdataenv.prg for inclusion in the exe and a utility that converts the programmer created data environment prg into a VCX a while back in order to be able to distribute a more or less self contained VCX software module as part of a large, modular application. It has worked like a champ for quite a while under VFP5, but will not work under VFP 6. I get 'Unknown error code -5' during instantiation of the data environment class. Does this ring a bell for anybody?
I don't know why you're getting the Unknown error code, but you're in luck...the VFP6 version of the Mere Mortals Framework stores DE's in .vcx's rather than .prg files. We have created a builder that manually manipulates the records in the .vcx file.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com