Re: Using CStirng in .c file
Quote:
Originally posted by ooosawaddee3
I define this below data in .c file
when I compile there are these error message
Code:
error C2065: 'CString' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'm_data'
error C2065: 'm_data' : undeclared identifier
Do you know how to solve my problem?
Thank you.
Did you try it in a .cpp file? I'm not sure but I think MSVC++ compiles according to the type of file you use...and as CString is an MFC class....it wont work in C