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

Search:

Type: Posts; User: Gerald Bates

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    353

    Re: Console Ctrl Event handler

    I have had a design change and now ignore the CTRL signals within my DefaultConsoleHandler(). Instead these messages will be passed into an event queue for the application to deal with. So far all...
  2. Replies
    11
    Views
    353

    Re: Console Ctrl Event handler

    Looked at your link and I was missing the infinite loop. Now I get a messageBox() displaying what is trapped.

    A few seconds later I get a windows XP End program box pop up? Will put these...
  3. Replies
    11
    Views
    353

    Re: Console Ctrl Event handler

    Victor, I have removed the pointer from signature and also cast the call in order to get this to compile without errors. Only problem now is that the CTRL signals are not being trapped.

    The class...
  4. Replies
    11
    Views
    353

    Re: Console Ctrl Event handler

    Still produces errors?

    ||=== Build: Debug in vmConsole (compiler: GNU GCC Compiler) ===|
    D:\Programming\Projects\2015\vmConsole\src\vmConsoleEvent.cpp||In constructor...
  5. Replies
    11
    Views
    353

    Re: Console Ctrl Event handler

    I tried both of those suggestions before I posted. Because I got errors, I used the :: to see if the previous errors went away. If I use RegisterEventHandler(DefaultConsoleHandler); in the c'tor I...
  6. Replies
    11
    Views
    353

    Re: Console Ctrl Event handler

    As soon as you replied Victor, I was on the case. I know your right, it needs to be a static class member function. I have changed ONLY the definition within the vmConsoleEvent class to static BOOL...
  7. Replies
    11
    Views
    353

    [RESOLVED] Console Ctrl Event handler

    I am having problems compiling code that simply allows me to install a default HandlerRoutine(). I want the user to be able to remove this handler or install their own. I have condensed the issue...
  8. Replies
    6
    Views
    816

    Re: Window_buffer_size_event

    Yes, I have learned this the hard way. Spent hours trying to get this to work to no avail. I could not get the console size to get bigger at all, neither could I find a way of detecting the console...
  9. Replies
    6
    Views
    816

    Re: Window_buffer_size_event

    Thanks 2kaud, You are right that I thought it was capturing a console resize. I needed to trap this so I can change the screen buffer if the console window size changed. I going to test another...
  10. Replies
    6
    Views
    816

    Re: Window_buffer_size_event

    Sorry, I have had issues with my internet connection. Post has now been edited.
  11. Replies
    6
    Views
    816

    [RESOLVED] Window_buffer_size_event

    I am trying to capture a resize event for a console window. Everything works in the code I pulled off MSDN site except the resize? Could someone point me in the right direction as to why I'm not...
  12. Re: Issues copying and pasting text into a console screen buffer

    A big thanks to 2kaud and VictorN for all your help. I have made the changes as recommended by 2kaud and both functions work correctly if you remember that the console is 0,0 based!

    The...
  13. Re: Issues copying and pasting text into a console screen buffer

    Thanks 2kaud, I have corrected the code but still getting a segmentation fault. Will run this through the debugger and see what is going on again!
  14. Re: Issues copying and pasting text into a console screen buffer

    After making changes, I now get a segmentation fault reported from the debugger. I have nailed this down to the char *buf[] within a loop in GetText(). I have miss-understood how to increment the...
  15. Re: Issues copying and pasting text into a console screen buffer

    I have been working on this code since 9 am this morning and run it through the debugger many times. It has dawned on me that memory is contiguous and that's how the computer views it. This had led...
  16. Re: Issues copying and pasting text into a console screen buffer

    Indeed, I could not agree more. I have very little experience of debugging but I am going to give it a go. Have made significant changes to the code as I think I understand what VictorN was hinting...
  17. Re: Issues copying and pasting text into a console screen buffer

    CHAR_INFO lpBuffer[width][height];

    I take this to be a local variable that creates an array of structures of type CHAR_INFO. So each lpBuffer[x][x] location stores the character and it's...
  18. Re: Issues copying and pasting text into a console screen buffer

    I am using Codeblocks 13.12 and GNU GCC compiler.
  19. Re: Issues copying and pasting text into a console screen buffer

    I am getting Hello placed back on the screen but in different colours and a background colour with that text. GetText() is copying the screen and does not produce any errors. The same is for...
  20. [RESOLVED] Issues copying and pasting text into a console screen buffer

    I have spent 3 days trying to get two new functions - GetText() and PutText() to function correctly with no success. Would someone be kind enough to look over my code and see why they do not work. ...
  21. Replies
    2
    Views
    10,607

    Re: Test post with code or php?

    code is better.
  22. Replies
    2
    Views
    10,607

    Re: Test post with code or php?

    int main(){ CONSOLE_SCREEN_BUFFER_INFO csbi; GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi);
    int width = csbi.dwSize.X; int height = csbi.dwSize.Y;
    char...
  23. Replies
    2
    Views
    10,607

    Test post with code or php?

    int main()
    {
    CONSOLE_SCREEN_BUFFER_INFO csbi;
    GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi);


    int width = csbi.dwSize.X;
    int height = csbi.dwSize.Y;
  24. 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.
  25. [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;


    ...
Results 1 to 25 of 37
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center