Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with CREATEOBJECTEX
Message
 
À
06/07/2000 23:48:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00316317
Message ID:
00389337
Vues:
17
>>>I think (have not confirmed, but this is based on some understanding of the basics of COM at a lower level than we need to deal with from VFP), the CREATEOBJECTEX() is actually doing a CoCreateInstanceEx() call, and it excts to receive a CLSID as an argument.
>
>You're correct here. Off the subject, but I recently read a VB article that some VB guru had written that details how to write a function that encapsulates all of the API calls necessary to use CoCreateInstanceEx and gain an actual object reference in VB, bypassing the built in VB late binding mechanics. It was pretty funny reading this 4 page article about all this VB code that gives a VB programmer a function that's already built into VFP. We, for once, have the good end of the deal.
>
>Incidentally, I read a rumor that VB 7 will finally get its own CreateObjectEx() function.

I think remote server DCOM support was added to VB 6 in SP3 with an additional parameter in CreateObject(). It was added to VBA, and VBScript 5 as well.

Incidentally, CoCreateInstanceEx is pretty easy to implement at least in C code. I remember when I had to do this in Web Connection for remote COM object support and was dreading the whole deal, but it was surprisingly simple...

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform