Cstring not recognized
I have Cstrings as members of a couple of classes in my project. I have included the <cstring>, <string> & <iostream> headers -- however, I still get multiple cstring related errors.
Below is one the code for one of the classes:
struct SMAFInfoHeader
{
SMAFInfoHeader ():
strFileType (_T("")),
strChannels (_T("")),
strArtist (_T("")),
strTitle (_T(""))
{
}
CString strFileType;
CString strChannels;
CString strArtist;
CString strTitle;
int bit_rate, sampling_rate, length;
};
Here are one of the few errors:
c:\audiotools\trunk\parsers\SMAF_file\SMAFInfoTips\SMAFInfoShlExt.cpp(63) : error C2146: syntax error : missing ';' before identifier 'strFileType'
c:\audiotools\trunk\parsers\SMAF_file\SMAFInfoTips\SMAFInfoShlExt.cpp(63) : error C2501: 'SMAFInfoHeader::CString' : missing storage-class or type specifiers
Any suggestions?
Thanks,
Ashlesha.

