Hi,
I am making the following Library function call in a C program:
LibQueryActiveUsers( pSession, ulMaxUsers, bFormatted, bComplete,
pusBadOrderCode, plSQLCode, pusNumRows, pbRows)
The data is returned in pbRows and pbRows is defined as:
pbRows
BYTE * — input
The pointer to the row data. A query can return data in a variety of
layouts, so pbRows is typed as a pointer to BYTE data. However, if the
application has information about the layout of the data, it is possible to
type this variable as a pointer to ROWTYPE data, where ROWTYPE is the
name of a structure that is defined to match the returned row data.
In my program, the call is made as follows:
sreturn = LibQueryActiveUsers((SESSION_P *) hsession,
ulMaxUsers,
IS_TRUE,
(BOOL) TRUE,
&usBadOrderCode,
&lSQLCode,
&usNumRows,
(unsigned char **) &stActiveUserRow
);
LIBFACTIVEUSERROW stActiveUserRow; //Declaration.
How do I retrieve (print) data from pbRows?
Thank you in advance.