>>I create the same class up above but in a PRG file instead of VCX. Same code and everything. And the class works. However when I define the class public and add it to a project and compile to a com server, the same code(that works in the VCX, and works as a regular VFP6sp4 object now generates an error. The 'load_data' method calls "open database f:\wrs\data\wrs.dbc shared" will throw an error. No where else does it throw an error but from the PRG file compiled into a COM server.
>
>Have you compiled the vcx into a COM server? Have you been playing around with DCOMCNFG?
The other thing is the reference to the F: drive - is this a mapped drive? If so, the instance of the COM server might not have the same drive mappings available to it, based on the context of execution; if this is the case, maybe using a UNC would be a workaround.