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!
That depends on what WTL features it uses.
WTL::CString
is a clone ofMFC::CString
so that won't be a problem to drop it into an MFC project. If it uses windowing classes, it will depend on whether it's a stand-alone control (like sayCHyperLink
). --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | 1ClickPicGrabber | NEW~! CP SearchBar v3.0 | C++ Forum FAQ There is a saying in statistics that a million monkeys pounding on typewriters would eventually create a work of Shakespeare. Thanks to the Internet, we now know that this is not true.