Related Topics . . WCSAMPLE
Example . . QWIN Example . . Home
Sample Code Information
Universal Web Connect provides example applications using Universal Web
Connect and the Universal Web Connect API. The
applications and libraries are located in the $INFORMIXDIR/samples
directory.
WCSAMPLE--Daemon Example
The WCSAMPLE sample application uses all of the major functions of the
Universal Web Connect API contained in the wclib.lib library. This
application is similar in functionality to the WCDAEMON application that
is shipped with Universal Web Connect, excluding the more sophisticated
event handlers and the ability to write and update large objects.
The files include:
- wclib.h--the header file for the externally available Universal
Web Connect API library functions
- wclib.lib--the library containing the Universal Web Connect
functions
- wcsample.c--the sample application described below, which provides
an example of how to use the Universal Web Connect APIs
- wcsample.mak--the makefile for building the WCSAMPLE application
WCSAMPLE provides the following functions:
- SampleEventHandler--a simple, sample event handler that shows
how to use event-handlers within Universal Web Connect
- loadAppPage--a function that reads and loads AppPages stored
and managed in the database
- loadLargeObject--a function that reads and loads large objects
(images, documents, and so on) stored in the Informix database
- requestLoop--a function that handles HTTP requests made
directly to the application either from the Universal Web Connect Driver
(wcdrvr.exe) or directly from the Web browser (when in direct connect
mode)
QWIN--Query Window Example
The QWIN sample application demonstrates a Universal Web Connect custom
application with a set of AppPages that uses AppPage tags and user dynamic
tags. QWIN also uses INFORMIX-ESQL/C.
To run the QWIN application
- Build qwin.exe using qwin.mak.
- Execute the following statement to populate the AppPages and user dynamic
tags into the database:
setupqwin database server username password
- Add the application section into the Universal Web Connect configuration
file for qwin.exe.
- Launch qwin.exe through your Web browser. See qwin.ec
for a list of functions and comments.
The files include:
- reame.txt - the README file containing information about the
QWIN example
- qwin.ec - the source file containing the functions and comments
that make up the query window application
- qwin.mak - the makefile for building the QWIN sample application
- setupqwin.bat - the batch file to populate the database with
AppPages and user dynamic tags
- app_pages/*.sql - the AppPages that are executed in the query
window application
These sample applications are distributed only as examples
for the programmer. They are not supported by Informix Software, Inc, nor
is their use or distribution supported by Informix Software, Inc. The following
disclaimer applies:
Informix Software, Inc.
Proprietary Data
This document contains trade secret data that is the property
of Informix Software, Inc. This document is submitted to the recipient in
confidence. Information contained herein may not be used, copied, or disclosed
in whole or any part except as permitted by written agreement signed by
an officer of Informix Software, Inc.
This material is also copyrighted as unpublished work under sections
104 and 408 of Title 17 of United States Code. Unauthorized use, copying,
or other reproduction is prohibited by law.
Related Topics
Universal Web Connect API
Top of Page
. . WCSAMPLE Example . . QWIN
Example . . Home