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 EventsBuild the 3GL ApplicationYou can build the 3GL application by setting environment variables and usingthe makefile to build the sample application.To build the 3GL application1. Set your PATH and SHARED LIBRARY PATH environment variables to runOpenROAD.The Mainwin runtime environment should also be initialized.2. Use the makefile provided for your platform to compile exteventu.c:cd $II_SYSTEM/ingres/w4glsamp/exteventmake -f makefile_yourplatformImport the Sample Application into Your DatabaseYou can import the sample OpenROAD application by entering the followingcommand on the command line:w4gldev backupapp in dbname ExtEvent%II_SYSTEM%/ingres/w4glsamp/extevent/extevent.expRun the Sample ApplicationYou can run the sample application by entering the following command at thecommand prompt:w4gldev rundbapp dbname ExtEventThe sample application starts.To use the application1. Click the Register Event button.2. Click the Send menu button in the external application frame.The ExtEvent demo frame displays a message that confirms that the eventwas received.3. Click the UnRegister Event button in the ExtEvent demo.4. Click the Send menu button again.The OpenROAD application does not receive the external event.356 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!