Hello,

I am migrating a bit of code from vc6 to 2008 and have came across a bit of code that I have put an example of below. My question is, in the case of value1 becoming 0 from the comboBox, why would this have not returned NULL in vc6?

Code:
CString exampleString;
unsigned long value1;
char* value2 = (char*) &value1;
char* buf;

value1 = exampleCombo.GetSelData();
buf = exampleString.GetBufferSetLength(1);
buffer[0] = (value2[0]);
exampleString.ReleaseBuffer(1);
return exampleString;