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
    8
    Views
    452

    Re: SetHandleInformation() - How to use?

    Many thanks for the replies. I will look into this further before I close.
  2. Replies
    8
    Views
    452

    Re: SetHandleInformation() - How to use?

    I tried that but the handle still gets closed?



    // Need to change it here so we can't close the handle.
    if(SetHandleInformation(hStdOut, HANDLE_FLAG_PROTECT_FROM_CLOSE,
    ...
  3. Replies
    8
    Views
    452

    SetHandleInformation() - How to use?

    I want to prevent a handle from being closed and at times from being inherited and then closed, but how do you use this API function?

    This code is self explanatory.



    #include <iostream>...
  4. Replies
    12
    Views
    729

    Re: Basic operator overloading

    I have read some of the supplement material and have come to the conclusion that some of my functionality should not be members but implemented as non-member non-friend functions. I have two classes...
  5. Replies
    12
    Views
    729

    Re: Basic operator overloading

    Not sure what this means?



    I have changed the left side and within parenthesis where I use vmSize&. I assume you mean in all places.

    The issue with returning const was because I was...
  6. Replies
    12
    Views
    729

    Re: Basic operator overloading

    Many thanks for the reply. I have been working through all these points raised and changing/testing code. I am still trying to implement myVm.setWidth(5).setHeight(5); functionality and have a few...
  7. Replies
    12
    Views
    729

    [RESOLVED] Basic operator overloading

    I have just finished adding basic operator overloaded functionality in my vmSize class and need to ask 3 questions.

    A. Have I implemented this functionality correctly?
    B. Are there any unforseen...
  8. Replies
    10
    Views
    947

    Re: A simple vmString class

    Many thanks for your replies. I have indeed taken out the vmString class and used the standard string class instead.
  9. Replies
    10
    Views
    947

    Re: A simple vmString class

    Many thanks VictorN and 2kaud for your replies. It does work now.

    Well to be honest the reason why I wanted to use my own string class was to see if I could eliminate conversion issues when...
  10. Replies
    10
    Views
    947

    [RESOLVED] A simple vmString class

    I am currently trying to eliminate the use of char * within my project in favour of having my own string class.

    I have made notes in the header and source code of the errors. I have several...
  11. Replies
    11
    Views
    902

    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...
  12. Replies
    11
    Views
    902

    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...
  13. Replies
    11
    Views
    902

    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...
  14. Replies
    11
    Views
    902

    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...
  15. Replies
    11
    Views
    902

    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...
  16. Replies
    11
    Views
    902

    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...
  17. Replies
    11
    Views
    902

    [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...
  18. Replies
    6
    Views
    1,434

    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...
  19. Replies
    6
    Views
    1,434

    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...
  20. Replies
    6
    Views
    1,434

    Re: Window_buffer_size_event

    Sorry, I have had issues with my internet connection. Post has now been edited.
  21. Replies
    6
    Views
    1,434

    [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...
  22. 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...
  23. 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!
  24. 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...
  25. 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...
Results 1 to 25 of 47
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center