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. Newbie help with output display windows

Newbie help with output display windows

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialhardwaredebugging
4 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.
  • R Offline
    R Offline
    rmnowick
    wrote on last edited by
    #1

    All, I am very new to Visual C++ as my experience has been with VxWorks in embedded real time systems. So, I am a bit overwhelmed with the steep learning curve that I am facing. I have spent a couple days getting an example program to run. This consists of a small form with a main menu that has a pulldown with a couple selections. There is a button on the form that displays text in a message box when selected. The first pulldown I use to open up a file open dialog box which passes back a file name. The good news is that there is only 1 more thing that I need to integrate at the moment. When the user selects the file I need to open it up and do a bunch of processing, looking for certain information and outputting it for the user to see. The files are huge (50GB) and contain binary data. Finding the data that I need and converting it to readable form via something like printf is not the problem. What I am wrestling with is how to display that data in a GUI window. Ideally I would like to have a "pane" in the lower portion of my main form that I use that would contain a scrollable section where I can dump the data and let the user look at it. This would be very similar if not identical to the build or debug pane that exists in the Visual C++ development environment. Where the compilation information goes. That is exactly what I want. The problem that I have is that there doesn't appear to be any "windows components" that I can easily slide over from the toolbox that perform this function. I have read a bunch of material about creating separate windows and then sending messages to those windows, but that is not ideal. I also have read about the CSplitterWnd Class that allows for the user to split and resize windows to display several views of the same document. This is overkill for me. I just want a running log of the printf equivalent stuff that I want the user to see, in a window that he/she can scroll up and down to view all the contents. If anyone can point me to the information in the MSDN library or online I would greatly appreciate it. Any pointers to code samples would be very helpful too as I'm a native C programmer and the Visual C++ takes some getting used to. Thanks, Robert

    G 1 Reply Last reply
    0
    • R rmnowick

      All, I am very new to Visual C++ as my experience has been with VxWorks in embedded real time systems. So, I am a bit overwhelmed with the steep learning curve that I am facing. I have spent a couple days getting an example program to run. This consists of a small form with a main menu that has a pulldown with a couple selections. There is a button on the form that displays text in a message box when selected. The first pulldown I use to open up a file open dialog box which passes back a file name. The good news is that there is only 1 more thing that I need to integrate at the moment. When the user selects the file I need to open it up and do a bunch of processing, looking for certain information and outputting it for the user to see. The files are huge (50GB) and contain binary data. Finding the data that I need and converting it to readable form via something like printf is not the problem. What I am wrestling with is how to display that data in a GUI window. Ideally I would like to have a "pane" in the lower portion of my main form that I use that would contain a scrollable section where I can dump the data and let the user look at it. This would be very similar if not identical to the build or debug pane that exists in the Visual C++ development environment. Where the compilation information goes. That is exactly what I want. The problem that I have is that there doesn't appear to be any "windows components" that I can easily slide over from the toolbox that perform this function. I have read a bunch of material about creating separate windows and then sending messages to those windows, but that is not ideal. I also have read about the CSplitterWnd Class that allows for the user to split and resize windows to display several views of the same document. This is overkill for me. I just want a running log of the printf equivalent stuff that I want the user to see, in a window that he/she can scroll up and down to view all the contents. If anyone can point me to the information in the MSDN library or online I would greatly appreciate it. Any pointers to code samples would be very helpful too as I'm a native C programmer and the Visual C++ takes some getting used to. Thanks, Robert

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      Maybe Ive got it wrong what exactely you're looking for, but I've used http://www.flounder.com/logctl.htm[^]before - he has posted it here to CP as well... this'll help with the logging part .... (there are other logging articles on cp as well) hth

      R 1 Reply Last reply
      0
      • G Garth J Lancaster

        Maybe Ive got it wrong what exactely you're looking for, but I've used http://www.flounder.com/logctl.htm[^]before - he has posted it here to CP as well... this'll help with the logging part .... (there are other logging articles on cp as well) hth

        R Offline
        R Offline
        rmnowick
        wrote on last edited by
        #3

        Garth, Thanks, this is perfect! What is CP though? I would like to explore other solutions too. Robert

        G 1 Reply Last reply
        0
        • R rmnowick

          Garth, Thanks, this is perfect! What is CP though? I would like to explore other solutions too. Robert

          G Offline
          G Offline
          Garth J Lancaster
          wrote on last edited by
          #4

          Sorry, CP = Code Project (those of us who live here tend to abbreviate).. The 'debug section' probably has some more ideas for you Robert, try http://www.codeproject.com/debug[^] where you'd find other gems like http://www.codeproject.com/debug/ctracerst.asp[^] and over in tools there's things like http://www.codeproject.com/tools/ss_log.asp[^] ... you just have to hunt around a bit ...

          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