Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using ActiveX EXE
Message
De
28/10/1998 10:55:22
 
 
À
26/10/1998 10:11:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00150471
Message ID:
00151601
Vues:
20
Hi Ed,
Ok, How do I set up the ActiveX server? This is where I am currently stuck.

Scott

>>Can anyone tell me how to make use of an ActiveX EXE? I have the function that I need to call within the exe, but don't know how to set up a form or method to initialize and call it.
>>
>
>You need to make a connection to the ActiveX server; in VFP this is done via CREATEOBJ(). Your server is registered with a ProgID; you instantiate it in your VFP app, regardless of the type of server (in or out of process) by doing a CREATEOBJ() referencing the ProgID. If the server were registered on your system with the ProgID MyApp.MyActiveXServer, you'd:
>
>oMyServer = CREATEOBJ('MyApp.MyActiveXServer')
>
>If the server is not running, it will cause the system (either on your local machine or on a remote system if it's a remote out of process server and has been set up properly) to start an instance of the server. You then access the server's methods and properties just like any other VFP object, for example:
>
>cMyString = oMyServer.SomeServerProperty
>
>or
>
>lResult = oMyServer.DoWhatIWant('Some String parameter',42)
>
>>Any help would be greatly appreciated.
>>
>>Scott Fitzgerald
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform