Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. graetzd

    SetConsoleCtrlHandler() problem

    Marcel, PERFECT! That's exactly what I want. For those who have interest in this thread: I wanted the console window to gracefully exit (without quitting the SDI program) if the user hit the X-button or select Close from the console window. It appears that catching the "X" or...
  2. graetzd

    SetConsoleCtrlHandler() problem

    Marcel, Thank you. I'll post if I find anything else as well. I am using Windows2000 and my VC++ compiler is an early version of v.6.0 David G.
  3. graetzd

    SetConsoleCtrlHandler() problem

    Marcel, Your above post works great with one exception. If I right-click on the top of the console the X gets reactivated and un-grayed. Any suggestions? I am also going to look into how to gray out the X-Close sub-menu command that is accessible by right-clicking on the console - if you...
  4. graetzd

    SetConsoleCtrlHandler() problem

    Marcel, Your reply seems like the easiest to implement. Your GetConsoleWindow() function does not compile and I cannot find it in my documentation - is that your own function? I would prefer to have a function that is a bit more portable so if you would be willing to post your function that...
  5. graetzd

    SetConsoleCtrlHandler() problem

    Pete, Yes I did - and with no success either! Thanks. DG
  6. graetzd

    SetConsoleCtrlHandler() problem

    Hello Forum Gurus: I am implementing a CONSOLE application vis-a-vis my SDI application. I can get a console to launch correctly and send output to the console. My Problem: I would like for the console to exit "gracefully" when the user hits the X-button or choses Close from the...
  7. graetzd

    Scaling a View

    Hello Forum Gurus: Does someone have an example of how to implement an OnDraw() function that will draw a series of polygons in a view such that regardless of how many polygons there are they will all be drawn in the current view size? Assume that: 1) I can predetermine what the maximum and...
  8. graetzd

    SetConsoleCtrlHandler() problem

    Hello Forum Gurus: I am implementing a CONSOLE application vis-a-vis my SDI application. I found some code to do this, and I can get a win-32 style console to launch correctly and send output to the console. My Problem: I would like for the console to exit "gracefully" when the user...
  9. graetzd

    ConstructElements of a CArray within an another CArray

    Pete, Thank you - your first suggestion of changing my template defintion to take a reference worked perfectly! David G.
  10. graetzd

    ConstructElements of a CArray within an another CArray

    Pete, Thanks for the try but it's a no-go. I had tried that before and the error message I get is ..."error C2664: 'Add' : cannot convert parameter 1 from 'struct BASE' to 'struct BASE' No copy constructor available for struct 'BASE' " Does that jog any other ideas? David G.
  11. graetzd

    ConstructElements of a CArray within an another CArray

    Hello Forum Gurus: I am trying to figure out how to implement a CArray of a structure that contains within it another CArray. The outer structure desired is: struct BASE { int BasePoly; CArray <int,int> AdjTo; }; and I can declare a member of this in my document: class CMainDoc : public...
  12. graetzd

    View data as with old command-style window

    Thank you all who have replied so far. I have this qustion posted on two forums and have received a few hints and indications that I need to elaborate a bit more. My intention, for this application, is to learn about creating and using an SDI program. For that reason, I am not interested in...
  13. graetzd

    View data as with old command-style window

    Hello Tek-Tips Forum, Before describing my problem I should give a short background. I am a forest research scientist and my applications have been stictly command window programs. I am now trying to learn some C++ and MFC so I can build some simple front-end user interfaces for future...
  14. graetzd

    Help with generic free store memory deleter

    Zyrenthian, Thank you. I was trying to avoid learning about constructors and destructors for awhile but I forged ahead and have modified my structure to be a class and now I have been able to successfully use a destructor to free up huge free store memory that I allocate to store arrays of...
  15. graetzd

    Help with generic free store memory deleter

    I am trying to create a generic function that will delete memory I have created on the Free Store (using operator new). My idea is to have a Switch statement inside the function that is activated by an incoming parameter. My problem is that I am using pointers within structures and I may be...
  16. graetzd

    Parsing Column Delimited Strings

    Many thanks to &quot;the_great&quot; for correctly identifying my problem and giving me a great answer to my problem.
  17. graetzd

    Parsing Column Delimited Strings

    Does anyone have a good fail-safe method to parse out a text string that is column delimited (i.e. columns 1-4, which may have whitespace, is reserved for a particular variable). I have the following set up to read lines of input data that need to be parsed apart: while((GetStatus =...

Part and Inventory Search

Back
Top