C
crash
I have a program that i changed over from using char *'s to using
ansistrings. Previously it had been:
char string1[255];
char string2[255];
strcpy(string1,string2);
now i use:
AnsiString string1;
AnsiString string2;
string1 = string2;
The problem is, i made a mistake and didn't completely convert a line,
and it was like this:
AnsiString string1;
AnsiString string2;
string1,string2;
I did not get any error for this. I found it by stepping through the
code and noticing that this line was completely jumped over, almost
like it was a comment. I'm not sure if this is IDE specefic or
language specific, but can anyone tell me if they know why this makes
it by the compiler? I use Borland C++ Builder 6. Thanks in advance
for your help,
Ben
ansistrings. Previously it had been:
char string1[255];
char string2[255];
strcpy(string1,string2);
now i use:
AnsiString string1;
AnsiString string2;
string1 = string2;
The problem is, i made a mistake and didn't completely convert a line,
and it was like this:
AnsiString string1;
AnsiString string2;
string1,string2;
I did not get any error for this. I found it by stepping through the
code and noticing that this line was completely jumped over, almost
like it was a comment. I'm not sure if this is IDE specefic or
language specific, but can anyone tell me if they know why this makes
it by the compiler? I use Borland C++ Builder 6. Thanks in advance
for your help,
Ben