Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getobject
Message
 
 
À
27/07/2001 15:13:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00536461
Message ID:
00536655
Vues:
7
>>>>>No, that's not a problem. Application *is* running. Here is an error message:
>>>>>"Moniker cannot open a file". I think, is a known issue in VFP6. 7 works fine but I need it in 6.
>>>>>Thanks Mark
>>>>
>>>>Mark,
>>>>GetObject was modified in VFP 7 to handle the IMoniker interface. Unfortunately, without directly using CoGetObject in the WinAPI, I don't know of a way to get what you want to work in VFP 6 and I have never implemented this funtion call before.
>>>
>>>Would WSH be any help?
>>>
>>>Mark
>>
>>It might. You could also use a VB COM wrapper. Pass it the moniker to grab a reference to and have it pass the object reference back to you.
>I might try VB. Is there a way I can use WSH GetObject method?
>
>Thanks Mark

Mark,
If you use GetObject in VB you are using the same implementation. GetObject (script, VB, VFP) are all implementations of the WinAPI CoGetObject function. It is only VFP 6's (and below) lack of support for the IMoniker interface that is causing you problems. VB/WSH's implementation doesn't suffer from this. And it was "corrected" in VFP 7. Is upgrading not an option?
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform