C
Christoph Conrad
Hi,
given the following test case, with CString from Microsofts MFC:
==================================================
file 1:
CString arr[100];
==================================================
file 2:
extern CString arr[];
void somefunc()
{
arr[0] = "foo";
arr[1] = "bar";
}
==================================================
It does not seem to be guaranteed that arr is initialised correctly
before usage. Is there some trick to force this?
Best regards,
Christoph
given the following test case, with CString from Microsofts MFC:
==================================================
file 1:
CString arr[100];
==================================================
file 2:
extern CString arr[];
void somefunc()
{
arr[0] = "foo";
arr[1] = "bar";
}
==================================================
It does not seem to be guaranteed that arr is initialised correctly
before usage. Is there some trick to force this?
Best regards,
Christoph