TheCrappyProgrammer
Programmer
I have a problem concatenating a CString and a CString* array.
I get a "Performed an Illegal Operation" window when I try to do it.
Here's my code:
CString expression;
CString* pTOP = new CString[10];
for (int index=0;index<10;index++)
expression = expression + pTOP[index]; //This is where the problem is.
//Note: This is just a shortened version of my code.
//I already initialized all my variables and arrays in my real code.
I get a "Performed an Illegal Operation" window when I try to do it.
Here's my code:
CString expression;
CString* pTOP = new CString[10];
for (int index=0;index<10;index++)
expression = expression + pTOP[index]; //This is where the problem is.
//Note: This is just a shortened version of my code.
//I already initialized all my variables and arrays in my real code.