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. C / C++ / MFC
  4. CString Problem

CString Problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomquestion
6 Posts 5 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.
  • D Offline
    D Offline
    Dody_DK
    wrote on last edited by
    #1

    I was reading the following article http://codeproject.com/clipboard/archerclipboard1.asp[^] and when I compile the code, it give me an error (error C2039: 'GetWindowTextA' : is not a member of 'CString') and it says "see declaration of 'CString'" any help with this? thanks in advance

    T A T I 4 Replies Last reply
    0
    • D Dody_DK

      I was reading the following article http://codeproject.com/clipboard/archerclipboard1.asp[^] and when I compile the code, it give me an error (error C2039: 'GetWindowTextA' : is not a member of 'CString') and it says "see declaration of 'CString'" any help with this? thanks in advance

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      Dody_DK wrote: _I was reading the following article http://codeproject.com/clipboard/archerclipboard1.asp\[^\]_ is not opening on my Ccomputer , i don't knwo why. Dody_DK wrote: and when I compile the code, it give me an error (error C2039: 'GetWindowTextA' : is not a member of 'CString') and it says "see declaration of 'CString'" GetWindowText it Self a Win32 Api,search for it in your local copy of MSDN


      "I Think this Will Help"

      visit me at http://www.thisisalok.tk
      1 Reply Last reply
      0
      • D Dody_DK

        I was reading the following article http://codeproject.com/clipboard/archerclipboard1.asp[^] and when I compile the code, it give me an error (error C2039: 'GetWindowTextA' : is not a member of 'CString') and it says "see declaration of 'CString'" any help with this? thanks in advance

        A Offline
        A Offline
        Aamir Butt
        wrote on last edited by
        #3

        Better ask article related questions in their own forums/Message Boards. People dont like it here generally as you would have noticed by now. Found on Bash.org I'm going to become rich and famous after i invent a device that allows you to stab people in the face over the internet My Articles

        1 Reply Last reply
        0
        • D Dody_DK

          I was reading the following article http://codeproject.com/clipboard/archerclipboard1.asp[^] and when I compile the code, it give me an error (error C2039: 'GetWindowTextA' : is not a member of 'CString') and it says "see declaration of 'CString'" any help with this? thanks in advance

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          it seems like you call something like CString::GetWindowText(). you probably have a such lines :

          CString str;
          str.GetWindowText();


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          1 Reply Last reply
          0
          • D Dody_DK

            I was reading the following article http://codeproject.com/clipboard/archerclipboard1.asp[^] and when I compile the code, it give me an error (error C2039: 'GetWindowTextA' : is not a member of 'CString') and it says "see declaration of 'CString'" any help with this? thanks in advance

            I Offline
            I Offline
            Iain Clarke Warrior Programmer
            wrote on last edited by
            #5

            As others have said, questions about code in an article are best put in that article. But I'm in a good mood. Search MSDN for GetWindowText for all the answers you can shake a stick at. GetWindowText is either a windows API function: int GetWindowText( HWND hWnd, LPTSTR lpString, int nMaxCount ); Or a member function of CWnd: int GetWindowText( LPTSTR lpszStringBuf, int nMaxCount ) const; void GetWindowText( CString& rString ) const; You can see the last member function takes a parameter of CString. CString has no member function GetWindowText. So in your code you probably have

            CString str;
            ....
            str.GetWindowText (...);
            

            which should be:

            void CMyWnd::OnSomething (...)
            {
            CString str;
            ....
            GetWindowText (str);
            ....
            }

            Iain.

            D 1 Reply Last reply
            0
            • I Iain Clarke Warrior Programmer

              As others have said, questions about code in an article are best put in that article. But I'm in a good mood. Search MSDN for GetWindowText for all the answers you can shake a stick at. GetWindowText is either a windows API function: int GetWindowText( HWND hWnd, LPTSTR lpString, int nMaxCount ); Or a member function of CWnd: int GetWindowText( LPTSTR lpszStringBuf, int nMaxCount ) const; void GetWindowText( CString& rString ) const; You can see the last member function takes a parameter of CString. CString has no member function GetWindowText. So in your code you probably have

              CString str;
              ....
              str.GetWindowText (...);
              

              which should be:

              void CMyWnd::OnSomething (...)
              {
              CString str;
              ....
              GetWindowText (str);
              ....
              }

              Iain.

              D Offline
              D Offline
              Dody_DK
              wrote on last edited by
              #6

              oki guys, since it is not the right place, so I would not talk more about it... and sorry if that disturbed you... thanks alot

              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