Consultor Eletrônico



Kbase 17333: How to build esqldemo.cc on Windows NT character client
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
How to build esqldemo.cc on Windows NT character client

INTRODUCTION
============
This knowledgebase entry describes how to build the static
ESQL/C sample program, esqldemo.cc, with the large client
model on Windows NT character client in Progress 8.2A and
later.

PROCEDURAL APPROACH
===================
1) Set the following Progress environment variables:

set DLC=<the directory that Progress is installed>
for example: DLC=C:\DLC

set PATH=%DLC%;%DLC%\bin;%DLC%\probuild\eucapp;%PATH%

set PROPATH=%DLC%\probuild\eucapp;%DLC%\probuild\eucapp\euc.pl

2) Set the following MSDEV environment variables (MSDEV 4.2 is
the currently supported varsion of the Microsoft C compiler for
32-bit Windows):

set MSDevDir=<directory containing the C compiler>
for example: MSDevDir=C:\msdev

set INCLUDE=%MSDevDir%\include;%MSDevDir%\mfc\include;%INCLUDE%

set LIB=%MSDevDir%\lib;%MSDevDir%\mfc\include;%LIB%

set PATH=%MSDevDir%\bin;%PATH%

3) Create a copy of sports database in your working directory
(from DOS command):

prodb sports sports

4) Copy all the files from $DLC/probuld/esqlc to your working
directory (from DOS):

copy %DLC%\probuild\esqlc\* .

5) Preprocess the esqldemo.cc

sqlcpp esqldemo.cc

6) Compile the c code generated from step #5

cl -c esqldemo.c

7) Run probuild utility to create a link script.

8) Choose ESQL/C LARGE CLIENT (FULL) from the product list in
probuild.

9) Choose Winsock TCP/IP as a configurable element in probuild.

10) Enter esqldemo.obj as your object file in probuild.

11) Edit the generated link script and change the following:

/SUBSYSTEM:windows,4.0 change to /SUBSYSTEM:console,4.0

/ENTRY:WinMainCRTStartup change to /ENTRY:mainCRTStartup

12) Run the load script with the following:

link @esqldemo.lnk

13) Run the executable with the following:

esqldemo -db sports -1 -trig sports.pl


Progress Software Technical Support Note # 17333