Download User Manual Windows

Transcript
C / C++ Precompiler
Adabas D: User Manual Windows
Calling Operating System Commands
Windows commands and executable programs can be called using the "exec command ..." (see Section
"Calling Operating System Commands").
Examples:
<command> ::= ’<comspec> /c displays the current directory
dir /p’
<command> ::= ’ print out ’
prints the file "out"
<command> ::= ’ pgm1 >
pgm1.lis’
starts the program "pgm1" riting the results to the
file "pgm1.lis".
C/C++ Precompiler Include Files
The precompiler generates the preprocessor directive #include %DBROOT%\incl\cpc.h. This file contains
all declarations required for the translation of a C/C++ program.
Subsequently Integrating the C/C++ Precompilerinto the Microsoft Developer Studio
To integreate the C precompiler call into the Tools menu of the Microsoft Developer Studio, proceed as
follows:
Click on the
Tools / Customize / Tools / Add
items. Enter
%DBROOT%\bin\cpc.exe
in the "Add Tool" window under Command, where %DBROOT% must be replaced with the
corresponding path; then press the OK button. The Browse button can also be used to make this entry.
Then enter
<parameter> ${FileName}
in the "Customize" window under "Arguments" and
${CurDir}
56