Yep, that was the problem. Thanks!
But like I expected there is still another problem with using sscanf_s.
In Dev-Cpp the following Code worked:
DLLFUNC void string_test()
{
char buffer[50];
short reseiver;
sprintf_s(buffer,50,"%d",10);
sscanf_s(buffer,"%d",&reseiver);
}
But if I use this function in GS i get this runtime error:
Debug Error!
Run-Time Check Failure #2 - Stack around the variable 'reseiver' was corrupted.
What am I doing wrong?
[edit]I found out that this problem only occurs in a dll. If I build the whole thing as console application everything works. Maybe some settings are affecting this.
Dark_Samurai
Last edited by Dark_samurai; 04/18/08 19:18.
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version