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 and Intellisense

CString and Intellisense

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiodebuggingperformancetutorial
3 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.
  • F Offline
    F Offline
    Fernando A Gomez F
    wrote on last edited by
    #1

    Hello all. When I debug a Visual C++ 9 application and want to see a CString variable's value in the watch tab, it only displays a memory address. If I wish to see the string, I have to select CString's m_pszData member. I remember that one could customize Intellisense so that it would show some specific value of a certain class. I've been googling for a while but haven't found something useful: I only get references to DebuggerDisplayAttribute class, but since that's a managed class I can't use it. So, does anybody have a clue on how to configure Intellisense? Thanks in advance.

    M 1 Reply Last reply
    0
    • F Fernando A Gomez F

      Hello all. When I debug a Visual C++ 9 application and want to see a CString variable's value in the watch tab, it only displays a memory address. If I wish to see the string, I have to select CString's m_pszData member. I remember that one could customize Intellisense so that it would show some specific value of a certain class. I've been googling for a while but haven't found something useful: I only get references to DebuggerDisplayAttribute class, but since that's a managed class I can't use it. So, does anybody have a clue on how to configure Intellisense? Thanks in advance.

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      Maybe you can edit the autoexp.dat file (somewhere in the VS folder) to do that ? (just google for that).

      Watched code never compiles.

      F 1 Reply Last reply
      0
      • M Maximilien

        Maybe you can edit the autoexp.dat file (somewhere in the VS folder) to do that ? (just google for that).

        Watched code never compiles.

        F Offline
        F Offline
        Fernando A Gomez F
        wrote on last edited by
        #3

        Yep, that did the trick. I found this article[^] that explains how to do it. And although it references VC6 it works quite well in VC9, the only difference being that autoexp.dat file is located at C:\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger (in my machine, at least). Thanks for the help!

        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