FILE Type Not Recognized in MFC
- by Chicko Bueno
I'm using FILE type in my MFC project but after compiled, it shows the following errors:
Error 23 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Error 24 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Error 22 error C2146: syntax error : missing ';' before identifier 'm_pFileW'
Those errors are referring to this code:
FILE *m_pFileW;
Did I missing any library header to use FILE syntax? Do I need to use different approach and replace FILE syntax? This errors are only generated when I placed it into my MFC project. This is not happening in C++ Console. Please help.
Thank you.