Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Talking to a VFP exe using a com dll
Message
 
À
13/05/2001 22:41:40
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00506704
Message ID:
00507058
Vues:
13
>
>EXE #1 - Monolithis VFP exe running with grid displayed.
>
>EXE #2 - A different exe written in C++ (that has actually been called by EXE #1) will call a new com dll to update the tables behind EXE #1. This EXE also needs to somehow refresh the screen in EXE #1 after the dll has updated the tables. Can this dll access the objects in EXE #1 in some manner to refresh the screen to show the updates?

VFP 6 does not have an ON EVENT or a COMRETURNEVENT. VFP does have ON ERROR and COMRETURNERROR. As it is now, the only way to trigger a VFP client (EXE #1) to refresh controls at the behest of the server (COM) would be to use an ON ERROR trap an "intentional" error from the server using COMRETURNERROR in your DLL. COMRETURNERROR provides a user argument to set an element in the AERROR() array. COMRETURNERROR will fire the client ON ERROR. The on error procedure could evaluate AERROR() elements to determine if the error was an actual error or a forced error. If the error was forced, the client could use that to service the client controls. The "ADO Query Analyzer" in the files section demonstrates how the server / com COMRETURNERROR function can force a client event (an error event).
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform