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 Link 3GL ProceduresHow You Can Link 3GL ProceduresAfter coding your 3GL procedures, you must compile and link them into anexecution module appropriate for your platform. On Windows platforms, theexecution module takes the form of dynamic link libraries (DLL). On UNIXplatforms, it takes the form of shared libraries. OpenROAD makes a call intothe execution module when a 3GL procedure is called in 4GL code.Note: Use esqlc.lib instead of ingres.lib when linking.For instructions about how to build these libraries, consult the documentationsupplied for your compiler and linker for the specific operating system. Alsoconsult the readme_OR_3GLsample.txt file in the supplied 3GL example fordetailed information:WindowsUNIXThe readme file is located in the %II_SYSTEM%\ingres\w4glsamp\3gldirectory.The readme file is located in the $II_SYSTEM/ingres/w4glsamp/3gldirectory.Technical TipsThe following sections discuss several important issues associated with buildingDLLs in general and 3GL DLLs for Windows.4GL/3GL Data TypesThe following table shows the types for 4GL and the corresponding 3GL types:4GLvarcharchardatemoneyfloatsmallintint3GL on All Platformschar*char*char*doubledoubleint (4 bytes)int306 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!