I can't figure it out, and am out of ideas what to do. If my program uses the default FileName before Execute() of OpenDialog everything works fine, but if it doesn't then fopen returns a value slightly different from the right one.. code looks like this:
Unit.h
..
char *plI, *plQ;
char strI[512], strQ[512];
..
Unit.cpp
FILE *plikI=NULL, *plikQ=NULL;
plikI=fopen(plI,"rb"
;
plikQ=fopen(plQ,"rb"
;
fread(&daneI[0],sizeof(short int),rozmI/sizeof(short int),plikI);
fread(&daneQ[0],sizeof(short int),rozmQ/sizeof(short int),plikQ); fclose(plikI);
fclose(plikQ);
There might be something not right here, I'm just a beginer. If someone could help me, I'd be very grateful
Unit.h
..
char *plI, *plQ;
char strI[512], strQ[512];
..
Unit.cpp
FILE *plikI=NULL, *plikQ=NULL;
plikI=fopen(plI,"rb"
plikQ=fopen(plQ,"rb"
fread(&daneI[0],sizeof(short int),rozmI/sizeof(short int),plikI);
fread(&daneQ[0],sizeof(short int),rozmQ/sizeof(short int),plikQ); fclose(plikI);
fclose(plikQ);
There might be something not right here, I'm just a beginer. If someone could help me, I'd be very grateful