Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Possible to Call External Program from VFP MTDLL?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01138193
Message ID:
01138351
Vues:
16
I guess you don't read Calvin Hsia's blog at http://blogs.msdn.com/calvin_hsia, in particular http://blogs.msdn.com/calvin_hsia/archive/2004/06/18/159550.aspx

>Good SWAG! I thought I had tried running it with a full path in testing, but it wasn't a UNC fully qualified path. It makes sense though.
>
>BTW, I did check to see what would happen if you tried to display a form in the external prg. You will get an OLE Idispatch error 2031 ... "User-interface operation not allowed at this time."
>
>When you think about it, this is really powerful. You can have a generic MTDLL COM+ component with a CallExternal() method, which you can pass a prg or exe name for it to execute. No need to reregister the component and recompile the DLL every time you add a method. One gotcha though, the live DLL does keep a reference to the called prg and prevents you from recompiling it until you shut down the COM+ component service. Not a big deal though.
>
>Thanks,
>
>-m@
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform