CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Gerald Bates

Search: Search took 0.01 seconds.

  1. Re: Largest Console window supported?

    My apologies, this method is returning the correct values. I was playing around with the screen buffer. Thanks for your reply.
  2. [RESOLVED] Largest Console window supported?

    I am having issues with establishing the largest console window supported on my system. I have written this code:



    void vmApp::GetMaxConsoleAppSize()
    {
    COORD maxConsoleSize;


    ...
  3. Replies
    4
    Views
    141

    Re: Simple Handle question

    I understand. Thanks for the replies.
  4. Replies
    4
    Views
    141

    Re: Simple Handle question

    What is the standard error device? Is this not just outputting an error message to the screen using (I am guessing) GetLastError()? It's clear to me with respect to the other 2 handles what they...
  5. Replies
    4
    Views
    141

    [RESOLVED] Simple Handle question

    When using GetStdHandle() function I can understand you need to make sure that you have a valid Handle to be able to write (output) and read (input) to the console. What I don't understand, is...
  6. Replies
    8
    Views
    210

    Re: Design advice required

    I never considered composition in this case, but now I think it makes more sense. The trouble I have at times is understanding the 3 relationships my book refers too; "Has-A", "Is-A" and "Knows-A". ...
  7. Replies
    8
    Views
    210

    Re: Design advice required

    Thanks Laserlight. I have looked at abstract classes and it does not really fit into my design. I have not got any virtual functions and don't understand them at this time. I have decided to look...
  8. Replies
    8
    Views
    210

    Design advice required

    I am trying to design and implement a program that consists of two classes. The Base class A is purely for supporting class B. I do not want to be able to create an object of class A. When object...
  9. Re: Basic classes to develop console programs

    Looking into this and I have found that it's not possible to have more than one console per process so I have decided to only allow for one console window to be created. I am thinking that perhaps...
  10. Basic classes to develop console programs

    I am fairly new to C++ programming and wish to start learning the language properly. Recently I have started to write some classes that allow me to create console programs. The issue I am having is...
  11. Replies
    5
    Views
    571

    Re: using composition with scope issue

    Paul, I am no expert so I thought it was better just to post what I did. In future I will try to replicate issues in a more compact way. I noticed you made vmColor c; public in vmConsoleApp so I...
  12. Replies
    5
    Views
    571

    using composition with scope issue

    Following on from my console project I decided to change a line in my method for SetColor() in my color class that calls a public method in my ConsoleApp class. I now get an error 35...
  13. Replies
    2
    Views
    381

    Re: Composition Issue

    Thanks Mybowlcut,

    this works correctly now.
  14. Replies
    2
    Views
    381

    [RESOLVED] Composition Issue

    I am new to CPP programming and I am trying to create a class vmConsole that has another class vmColor embedded into it. I understand that because my console class "has a" color, I need to program...
Results 1 to 14 of 14



HTML5 Development Center

Click Here to Expand Forum to Full Width