Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Out-Of-VFP execution of ActiveX of Report Manager
Message
De
12/10/2005 07:41:34
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01057851
Message ID:
01058261
Vues:
27
This message has been marked as the solution to the initial question of the thread.
>>I didn't say ShellExecute the OCX, wrapper exe.
>
>Aah, sorry, the slow me as usual, but I always appreciated your patience with me.
>
>Now that we have an exe can it be an invisible kind, but got to be fast, can't wait for another VFP session to load. And even then how to communicate parameters to this exe?

Yes it can be visible or invisible. It's fast because it works as if you dbliclicked it separately in explorer. ie:

*Consider it just does this - ignore cpu hog of do while for sample
local ltTime
ltTime=datetime()
do while datetime() < m.ltTime + 3600
enddo
If you ShellExecute 3 instances of it like this:

lnStart = seconds()
ShellExecute(...)
ShellExecute(...)
ShellExecute(...)
? seconds()-m.lnSeconds

Though they all do nothing for an hour your code continues execution immediately.
For passing parameters between them you can use regular parameter passing like command line invocation:

myExe.exe Param1 param2

However between 2 VFP applications you can also use a common table on disk as parameters location. Or an XML file etc.

For example if first one is preparing a cursor and the other one is using it, then I would instead persist it as a table and pass its name. Or pass an xml file keeping info how the 2nd exe could create the cursor itself lifting some more from the shoulders of primary application.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform