Hi everybody,I am new and I am doing a project for Pocket PC using evc 3
here is my question, I have declared a STRUCT to the Binary file
struct config{
int rtuid;
int netid;
char * wlstationcode;
char * rfstationcode;
char * stationname;
char * lastdate;
char * lasttime;
}line;
I have successfully write 255 records inside the binary file,now i want to read from that binary file and show it on a TextBox in my application,So I need to have all my variables to put in a CString.
FILE * info;
CString out;
for(coun=1;coun<=255;coun++){
info=fopen("\\My Documents\\rtu\\config.ini","rb");
outconfig.Format(_T("%d %d %s %s %s %s %s \r\n")
,line.rtuid,line.netid,line.rfstationcode,line.wls tationcode,line.stationname,line.lastdate,line.las ttime);
}
fclose(info);
GetDlgItem(IDC_CONFIGFILE) -> SetWindowText(out);
but it when output appear there is wrong data for those which i declared as char * inside the STRUCT.
Thanks in Advance