How to use a class written in WTL 7.0 in an MFC application
-
I have a class written in WTL 7.0 but I want to use it in my MFC application.How can i do that. The class use WTL CString but I think it isn't recognized in MFC I tried to add the class into my project but I got the following code when I conpiled: fatal error C1010: unexpected end of file while looking for precompiled header directive Can you help me? Thanks a lot!
-
I have a class written in WTL 7.0 but I want to use it in my MFC application.How can i do that. The class use WTL CString but I think it isn't recognized in MFC I tried to add the class into my project but I got the following code when I conpiled: fatal error C1010: unexpected end of file while looking for precompiled header directive Can you help me? Thanks a lot!
well, I am not too sure about WTL->MFC, but you can fix the compilation error by putting #include "stdafx.h" at the top of the file or select "not using precompiled header" in projectsettings->C/C++
-prakash