10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

How You Can Communicate with an External Program Using External User EventsstatusSpecifies a return variable that is an output integer variable that indicatesthe success or failure of the procedure. If the return value is IIW4GL_OK,the send was successful. If the return value is a nonzero value, the sendfailed (the text of the error message is in errormsg). Declare this as “intstatus.”External User Event DemoIf you have installed the OpenROAD Development package, a sample isprovided to demonstrate how external user events are used to facilitate thecommunication from a 3GL application to an OpenROAD application. The demofiles are included in the following directory:Windows%II_SYSTEM%\ingres\w4glsamp\exteventUNIX or Linux$II_SYSTEM$/ingres/w4glsamp/exteventFor instructions to use the demo, see the appropriate section, following, foryour platform.How the External User Event Demo Works on WindowsThe directory %II_SYSTEM%\ingres\w4glsamp\extevent contains the followingfiles:extevent.expIs an export file of the OpenROAD application used to run the sampleapplicationextevent.c, extev.h, extevent.rcAre source files for a non-OpenROAD executablemakefileIs a makefile for building the external applicationTo use the demo application, you must perform the following basic steps:1. Build the 3GL application.2. Import the sample application into your database.3. Run the sample application.See the following sections for details on each of these steps.Inter-Frame Communication Techniques 353

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!