I am a novice of C++. I write the following code to append strings to
a Combox (m_RibNum). This control component is on a PropertyPage
hosted on a PropertySheet.
int i;
char buffer[10];
CString s
for (i=0;i<5;i++)
{
itoa(i+1,buffer ,10);
s=*buffer;
sheet.m_RibType Edit.m_RibNum.A ddString((LPCTS TR)s);
}
When I debug this code, Debug Assertion Failure occured. Could anybody
tell me what's wrong in my code please?
a Combox (m_RibNum). This control component is on a PropertyPage
hosted on a PropertySheet.
int i;
char buffer[10];
CString s
for (i=0;i<5;i++)
{
itoa(i+1,buffer ,10);
s=*buffer;
sheet.m_RibType Edit.m_RibNum.A ddString((LPCTS TR)s);
}
When I debug this code, Debug Assertion Failure occured. Could anybody
tell me what's wrong in my code please?
Comment