F_GetReportMessageChar allows to get character by character from the report message buffer.
This function is useful in the Visual Basic application, where all message can not be transfered via
pointer like it is possible in the C++ application.
Syntax:
MSPPRG_API char F_GetReportMessageChar( INT_X index );
Return value:
Requested character from the Report Message buffer. 1 - TRUE
Example:
char text[1002];
INT_X k;
.......................
for( k = 0; k< 1000; k++ )
text[k] = F_GetReportMessageChar( k );
.......................
Example below shows how to take a message and display it in the scrolling box. The Edit box with
the ID e.g. IDC_REPORT must be created first.
............................................
Cstring Message = "";
............................................
void CMspPrgDemoDlg::Disp_report_message()
{
char text[1002]; //must be min. size - 1000
INT_X k;
for( k = 0; k< 1000; k++ )
text[k] = F_GetReportMessageChar( k );
Message = text;
SetDlgItemText(IDC_REPORT, Message.GetBuffer(Message.GetLength()));
CEdit* pEdit = (CEdit*) GetDlgItem(IDC_REPORT);
pEdit->LineScroll(pEdit->GetLineCount(), 0);
UpdateWindow();
}
F_DLLTypeVer
F_DLLTypeVer - Get information about DLL software type and software revision.
VALID FPA index - ( 1 to 64 )
70