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
    12
    Views
    525

    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...
  2. Replies
    12
    Views
    525

    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...
  3. Replies
    12
    Views
    525

    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...
  4. Replies
    12
    Views
    525

    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...
  5. Replies
    10
    Views
    846

    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.
  6. Replies
    10
    Views
    846

    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...
  7. Replies
    10
    Views
    846

    [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...
  8. Replies
    11
    Views
    794

    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...
  9. Replies
    11
    Views
    794

    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...
  10. Replies
    11
    Views
    794

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

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

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

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

    [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...
  15. Replies
    6
    Views
    1,340

    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...
  16. Replies
    6
    Views
    1,340

    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...
  17. Replies
    6
    Views
    1,340

    Re: Window_buffer_size_event

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

    [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...
  19. 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...
  20. 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!
  21. 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...
  22. 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...
  23. 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...
  24. 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...
  25. Re: Issues copying and pasting text into a console screen buffer

    I am using Codeblocks 13.12 and GNU GCC compiler.
Results 1 to 25 of 44
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