Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. How to use a class written in WTL 7.0 in an MFC application

How to use a class written in WTL 7.0 in an MFC application

Scheduled Pinned Locked Moved ATL / WTL / STL
c++helpquestiontutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cauvang
    wrote on last edited by
    #1

    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!

    M 1 Reply Last reply
    0
    • C cauvang

      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!

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      That depends on what WTL features it uses. WTL::CString is a clone of MFC::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 say CHyperLink). --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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups