FILE Type Not Recognized in MFC
Posted
by
Chicko Bueno
on Stack Overflow
See other posts from Stack Overflow
or by Chicko Bueno
Published on 2011-03-15T16:04:27Z
Indexed on
2011/03/15
16:10 UTC
Read the original article
Hit count: 134
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.
© Stack Overflow or respective owner