Elke keer als ik mijn app opstart crashed hij, als ik fouten opsporen doe dan lijd Visual studio 2010 mij hier naartoe
Naar talloze dingen proberen heb ik het maar opgegeven en schakel ik jullie hulp in
Aanvullend screen shot:
Groetjes, Tim
Code:
int* string;
int last_index, last_parsed_index = 0;
if(GetPrivateProfileString("REVISION", "Current", 0, (LPSTR)string, 32, "Cold\\Settings.ini") == 0){ //Dit lijntje staat een pijltje bij oftewel hier zit de fout
FILE *fpLastIndex;
fpLastIndex = fopen("3Ddata\\Control\\Xml\\Patch.xml", "r");
if(!fpLastIndex)
last_index = 0;
else
{
fscanf(fpLastIndex, "<?xml version=\"1.0\"?>\n\n<Patch index>\n\n <rev num=\"%d\"></num>\n <patch name=\"Elite Rose\" ID=\"SRO4554\"></patch>\n\n</Patch index>", last_index);
fclose(fpLastIndex);
remove("3Ddata\\Control\\Xml\\Patch.xml");
}
}else{
last_index = atoi(readINIStr("REVISION", "Current", "Cold\\Settings.ini"));
}
Naar talloze dingen proberen heb ik het maar opgegeven en schakel ik jullie hulp in
Aanvullend screen shot:
Groetjes, Tim
Laatst bewerkt: