Progress
External Program
Interfaces
Data Type Conversion
HLC data type conversion happens in two directions:
Converting C Language Data Types To Progress Data Types
When you use an HLC library function to write data to a Progress shared buffer or shared variable, the HLC library function converts the C language data type passed to the function to the appropriate Progress data type.
For example, the
prowtbd()
HLC library function allows you to write to a date field in a shared buffer. Among the parameters you pass toprowtbd()
are year, month, and day, all defined as integer in your C code. Theprowtbd()
function converts these separate C language integer values into a single Progress date value.Converting Progress Data Types To C Language Data Types
When you use an HLC library function to read data from a Progress shared buffer or shared variable, the HLC library function converts the Progress data type of the buffer or variable to a C language data type.
For example, the
prordbd()
HLC library function allows you to read from a Progress date field in a shared buffer. Among the parameters you pass toprordbd()
are pyear, pmonth, and pday, all defined as pointers to integer in your C code. Theprordbd()
function converts the single date value within the buffer to separate C language integer values and inserts the values in the memory locations to which pyear, pmonth, and pday point.See "HLC Library Function Reference," for details on the parameters each HLC library function uses and the data types of these parameters.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |