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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. my dll error ('CString' : undeclared identifier)

my dll error ('CString' : undeclared identifier)

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
5 Posts 2 Posters 1 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.
  • V Offline
    V Offline
    vc programmer 1
    wrote on last edited by
    #1

    dll doesn't know CString what problems. can i use directly CString? i want to use CString::mid function. mydll.cpp(198) : error C2065: 'CString' : undeclared identifier

    D 1 Reply Last reply
    0
    • V vc programmer 1

      dll doesn't know CString what problems. can i use directly CString? i want to use CString::mid function. mydll.cpp(198) : error C2065: 'CString' : undeclared identifier

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      vc-programmer- wrote: can i use directly CString? Yes, as long as you have correctly included the MFC header and library files.


      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      V 1 Reply Last reply
      0
      • D David Crow

        vc-programmer- wrote: can i use directly CString? Yes, as long as you have correctly included the MFC header and library files.


        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        V Offline
        V Offline
        vc programmer 1
        wrote on last edited by
        #3

        MFC header and library files what i need MFC header and library.. #include "windows.h" #include "afx.h" i try above header files. i can not access CString. how can i do?

        D 1 Reply Last reply
        0
        • V vc programmer 1

          MFC header and library files what i need MFC header and library.. #include "windows.h" #include "afx.h" i try above header files. i can not access CString. how can i do?

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          I would suggest using AppWizard to create an MFC DLL rather than trying to retrofit your DLL to use MFC.


          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          V 1 Reply Last reply
          0
          • D David Crow

            I would suggest using AppWizard to create an MFC DLL rather than trying to retrofit your DLL to use MFC.


            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            V Offline
            V Offline
            vc programmer 1
            wrote on last edited by
            #5

            yes! i understand for your suggesting. thank you so kind...

            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