@Rykin
I tried what you said, and I have one .exe decrypting to .bin, and I have this one to encrypt, but I get various C++ syntax errors when compiling. I'm not the best at this, so if anyone can point out my mistake(s), it would be appriciated.
Chris
EDIT2:
I re-updated the code with a line of code, that gets rid of the errors ("fpout" undeclared indentifier).
It successfully compiles, but I get one warning, which is the cause of crash upon launch.
It is:
warning C4700: uninitialized local variable 'data16' used
warning C4700: uninitialized local variable 'fpout' used
Here is the updated code.
CODE
int main(int argc, char *argv[])
{
int sze;
u16 *data16;
u32 *data32;
FILE *fp;
FILE *fpout;
char filename[20];
for(int i=0; ichars, i+1, data16+(((sdptr+i)->Ptr)/2), fpout); // encrypt Txt
DecyptPtrs(*data16, *(data16+1), sdptr); // and ptr
sprintf(filename, "done\\%03d.bin", i);
fpout = fopen(filename, "wb");
fwrite(data16, 1, sze, fpout);
fclose(fpout);
free(data16);
}
}