I have a struct INT_FILE_HEADER_DATA
struct INTF_DATA_FILE_HEADER {
int FileId;
short VersionNr;
DGEO_POINT NECrn; //DGEO_POINT is a class
DGEO_POINT SWCrn;
int NorthPoints;
int EastPoints;
};
struct INTF_DATA_FILE_HEADER {
int FileId;
short VersionNr;
DGEO_POINT NECrn; //DGEO_POINT is a class
DGEO_POINT SWCrn;
int NorthPoints;
int EastPoints;
};
To copy to clipboard, switch view to plain text mode
And I need to port the following
if ( fread(&m_rPlotDataHeader,sizeof(INTF_DATA_FILE_HEADER),1,fp) == 0 ) {
if ( bIsCompressed )
pclose(fp);
else
fclose(fp);
return 0;
}
if ( fread(&m_rPlotDataHeader,sizeof(INTF_DATA_FILE_HEADER),1,fp) == 0 ) {
if ( bIsCompressed )
pclose(fp);
else
fclose(fp);
return 0;
}
To copy to clipboard, switch view to plain text mode
bIsCompressed is a bool object. This object is set to "true" when file is compressed
Please help to port this code
Bookmarks