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.05 seconds.

  1. Re: No such file or directory with Hello World!

    I've fixed it. Deleted the text editor and installed a proper IDE that does a lot more!
  2. Re: No such file or directory with Hello World!

    Thanks for the reply. None of those worked, but I'm still trying to get this to work. Just can't figure it out.
  3. [RESOLVED] No such file or directory with Hello World!

    I have just started to use vs code for a project but I have a simple issues that I am sure someone here will resolve in two minutes.

    I have a folder: c:\documents\projects\vmConsole. Inside...
  4. Replies
    2
    Views
    956

    Re: Basic class advice needed

    Many thanks 2kaud, this has really helped.
  5. Replies
    2
    Views
    956

    Basic class advice needed

    The CPP language has changed and I am now studying an online book, but I have some basic questions on this simple class.



    #include <iostream>


    using namespace std;
  6. [RESOLVED] Operator overloading - In class or global?

    I have two classes vmSize and vmPoint. Both have operator overloading functions, but mine are within the class. Looking at another developers implementation of both these classes, theirs are...
  7. Replies
    5
    Views
    1,119

    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.
  8. Replies
    5
    Views
    1,119

    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...
  9. Replies
    5
    Views
    1,119

    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...
  10. Replies
    5
    Views
    1,119

    [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...
  11. Replies
    3
    Views
    1,159

    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.
  12. Replies
    3
    Views
    1,159

    [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...
  13. 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.
  14. Re: SetHandleInformation() - How to use?

    Many thanks for the replies. I will look into this further before I close.
  15. 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,
    ...
  16. [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>...
  17. Replies
    12
    Views
    2,470

    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...
  18. Replies
    12
    Views
    2,470

    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...
  19. Replies
    12
    Views
    2,470

    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...
  20. Replies
    12
    Views
    2,470

    [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...
  21. Replies
    10
    Views
    9,765

    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.
  22. Replies
    10
    Views
    9,765

    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...
  23. Replies
    10
    Views
    9,765

    [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...
  24. Replies
    11
    Views
    3,740

    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...
  25. Replies
    11
    Views
    3,740

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





Click Here to Expand Forum to Full Width

Featured