Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Talking to a VFP exe using a com dll
Message
 
To
13/05/2001 22:41:40
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00506704
Message ID:
00507058
Views:
14
>
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform