I've a strange error with files, which could be my mistake or something that i'm missing here:
if (dbFileExist("config.opx")==0){
dbOpenToWrite(1,"config.opx");
dbWriteFile(1,wwidth);
dbWriteFile(1,wheight);
dbWriteFile(1,wdepth);
dbWriteFile(1,wfscrn);
dbWriteString(1,wtitle);
dbCloseFile(1);
}
This code works fine but if code it to open and get data from a file it gives me error:
if (dbFileExist("config.opx")==0){
dbOpenToWrite(1,"config.opx");
dbWriteFile(1,wwidth);
dbWriteFile(1,wheight);
dbWriteFile(1,wdepth);
dbWriteFile(1,wfscrn);
dbWriteString(1,wtitle);
dbCloseFile(1);
}
dbOpenToRead(1,"config.opx");
dbReadFile(1,width);
dbReadFile(1,height);
dbReadFile(1,depth);
dbReadFile(1,fscrn);
dbReadString(1,title);
dbCloseFile(1);
Here's the error:
1>d:true phantasyprojectosaeriacódigoaeriazettacore.h(189) : error C2665: 'dbReadFile' : none of the 2 overloads could convert all the argument types
1> c:program filesthe game creatorsdark gdkincludedarksdkfile.h(101): could be 'int dbReadFile(int,int *)'
1> while trying to match the argument list '(int, int)'
1>d:true phantasyprojectosaeriacódigoaeriazettacore.h(190) : error C2665: 'dbReadFile' : none of the 2 overloads could convert all the argument types
1> c:program filesthe game creatorsdark gdkincludedarksdkfile.h(101): could be 'int dbReadFile(int,int *)'
1> while trying to match the argument list '(int, int)'
1>d:true phantasyprojectosaeriacódigoaeriazettacore.h(191) : error C2665: 'dbReadFile' : none of the 2 overloads could convert all the argument types
1> c:program filesthe game creatorsdark gdkincludedarksdkfile.h(101): could be 'int dbReadFile(int,int *)'
1> while trying to match the argument list '(int, int)'
1>d:true phantasyprojectosaeriacódigoaeriazettacore.h(192) : error C2665: 'dbReadFile' : none of the 2 overloads could convert all the argument types
1> c:program filesthe game creatorsdark gdkincludedarksdkfile.h(101): could be 'int dbReadFile(int,int *)'
1> while trying to match the argument list '(int, bool)'
thanks for the time
Tugapod