Since some days I am tryingto read out some values from the FS2004 via FSUIPC.
I am using the QT Creator to show my result in a small and simple form.
I think my problem is an easy one. Here is my code:
(It's a SLOT function connected with a pushButton)
void MainWindow::connectFSUIPC(){
DWORD dwResult;
if(FSUIPC_Open(SIM_ANY, &dwResult)){
char *chTime;
if(FSUIPC_Read(0x0238, 1, &chTime, &dwResult)){
!FSUIPC_Process(&dwResult);
QString str;
str = *chTime;
ui->labelFSUIPC->setText(str);
}
}
}
The connection and read out from the FS is successfully. I've tested it.
But the variable str is empty. My label shows nothing.
Maybe I made a conversion mistake?
Thank you for your help!
Michael













