10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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, LIB, and INCLUDE environment variables using theMicrosoft compiler.The II_SYSTEM environment variable should point to your OpenROADinstallation.2. Use the makefile to build extevent.exe:nmake allImport the Sample Application into Your DatabaseYou can import the sample OpenROAD application by entering the followingcommand at the command prompt:w4gldev backupapp in dbname ExtEvent"%II_SYSTEM%\ingres\w4glsamp\extevent\extevent.exp"Run 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.354 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!