Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getobject
Message
From
27/07/2001 16:18:25
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00536461
Message ID:
00536672
Views:
8
>>>>>>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?

Thanks, Larry for help. Yes, upgrade is an option.

Mark
Previous
Reply
Map
View

Click here to load this message in the networking platform