Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getobject
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00536461
Message ID:
00536505
Vues:
6
>>>>>If GetObject() fails (VFP 6.0) is there any other way to get an object of the running application?
>>>>>Thanks Mark
>>>>
>>>>It seems you want to get a reference to VFP itself. Some things you can do with the global variable Application. This seems to be identical to variable _VFP.
>>>>
>>>>Hilmar.
>>>
>>>Not sure what are you talking about. I need to get a handle of non VFP appl.
>>>Thanks Mark
>>
>>Mark,
>>
>>If GETOBJECT() fails (meaning the VFP native command, not the API call), it simply means that the associated application isn't running and CREATEOBJECT() is required. If that fails, then the app probably isn't installed. With Office 2K (and probably XP as well), GETOBJECT() is pretty much pointless. With other applications (Lotus SmartSuite '97, for example), I check via my Is_Run32 function to see if the application is running, and if so, issue GETOBJECT().
>>
>>hth,
>
>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,

There is an MS KB article (Q168054) that references this error message. However, GETOBJECT() is not referenced there. The problem applie to files that have been linked or embedded in a general field and the file has been moved, renamed, or is invalid. That's the only reference from the Fox standpoint. Other KB articles returned by a search on this don't apply (they're informational, not problem related).
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform