>Dear all,
>
>I have a simple COM created in VFP7 and called from VFP6. I have the following code and error. Is this a bug in VFP7? What gives? Thanks.
>
>***FROM VFP6
>
>oObj = CREATEOBJECTEX("Sample.sampleclass", "myserverpc")
>oObj.echostring("Testing") && This statement works
>oObj.addnumbers(2,3) && This statement bombs out
> ****"OLE Error code:0x80020006:Unknown name
>oObj.substractnumbers(3,2) && Same error as above.
Are you sure you're not dealing with a versioning problem? I would start by deleting all copies of the server on the local and remote machines, and recompiling. It sounds to me like the server you are actually instanciating does not have those methods available. Do they show up in Intellisense in VFP7, when instanciated the same way?
Erik Moore
Clientelligence