Newbie help with output display windows
-
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
-
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
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
-
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
-
Garth, Thanks, this is perfect! What is CP though? I would like to explore other solutions too. Robert
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 ...