>>>Hi Bryan,
>>>
>>>Since VFP DLLs are COM objects, you use the CREATEOBJECT() syntax to interface with them. However, I believe that C++ can also be used to create DLLs that are also COM objects. In this case, you wouldn't have to make any changes to the calling code. Otherwise, the DECLARE - DLL syntax would be required.
>>
>>
>>Thanks, George. That's exactly what I needed to know. You're the man!
>
>You're welcome, Bryan. Good to see you (virtually speaking). BTW, yes, you can use C++ to create COM objects. However, I don't know for certain, when it comes to deployment time, if it will have to be re-registered in the registry or not. Further, if it's an OCX, it will be.
And there lies the rub - if you need the services of the COM object written in VC++, you'll want it to have a distinct ProgID, and absolutely will want it to have a distinct CLSID. If the interfaces between the C-created COM object and the VFP COM object are identical, they could share a common VersionIndependent ProgID, so that you would be able to instantiate them in the same fashion, but you're opening yourself to a great deal of trouble if the interfaces are not exactly identical, especailly when dealing with apps that early bind COM objects.