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 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    468

    Re: Basic Window wrapper

    I have decided to study a bit more and write simple window programs without using classes. Many thanks for the advice given, it is appreciated.
  2. Replies
    5
    Views
    468

    Re: Basic Window wrapper

    I have tested this and it does appear to be working so I am leaving the code as it is. Sorry for the silly questions but I really don't understand much about windows programming.


    My next issue...
  3. Replies
    5
    Views
    468

    Re: Basic Window wrapper

    I can't thank you enough, it works fine now. I understand your changes in the message loop and I've been looking up the functions and reading about the return values and remarks, don't understand...
  4. Replies
    5
    Views
    468

    [RESOLVED] Basic Window wrapper

    All the basic programs I've written are for a console. What I am working on is creating a basic window that appears to be a console. Just one window for the time being with a black background with...
  5. Replies
    3
    Views
    303

    Re: Windows basic questions

    Many thanks for the reply, That's cleared up a few things. Most importantly the class name needs to be unique.
  6. Replies
    3
    Views
    303

    [RESOLVED] Windows basic questions

    I am using code blocks to create a basic windows application, and I have some basic questions about the skeleton program that it creates, and it does work all ok.

    Firstly, when the window is...
  7. Re: SetHandleInformation() - How to use?

    I've decided to take a different route with my project, but this has helped a great deal. Many thanks to everyone that replied, appreciated.
  8. Re: SetHandleInformation() - How to use?

    Many thanks for the replies. I will look into this further before I close.
  9. 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,
    ...
  10. [RESOLVED] 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>...
  11. Replies
    12
    Views
    801

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

    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...
  13. Replies
    12
    Views
    801

    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...
  14. Replies
    12
    Views
    801

    [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...
  15. Replies
    10
    Views
    1,012

    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.
  16. Replies
    10
    Views
    1,012

    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...
  17. Replies
    10
    Views
    1,012

    [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...
  18. Replies
    11
    Views
    976

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

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

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

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

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

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

    [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...
  25. Replies
    6
    Views
    1,473

    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...
Results 1 to 25 of 54
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center