Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating/using a DLL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00312591
Message ID:
00312686
Vues:
43
>>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform