Type: Posts; User: Gerald Bates
Search took 0.01 seconds.
July 10th, 2015, 03:16 AM
Many thanks for the replies. I will look into this further before I close.
I tried that but the handle still gets closed?
// Need to change it here so we can't close the handle.
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.
March 26th, 2015, 04:55 AM
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...
March 25th, 2015, 11:26 AM
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...
March 25th, 2015, 08:33 AM
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...
March 25th, 2015, 04:23 AM
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...
February 17th, 2015, 07:31 AM
Many thanks for your replies. I have indeed taken out the vmString class and used the standard string class instead.
January 13th, 2015, 06:15 AM
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...
January 13th, 2015, 04:13 AM
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...
December 12th, 2014, 05:49 AM
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...
December 10th, 2014, 09:53 AM
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...
December 10th, 2014, 09:16 AM
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.
December 10th, 2014, 08:34 AM
Still produces errors?
||=== Build: Debug in vmConsole (compiler: GNU GCC Compiler) ===|
December 10th, 2014, 07:10 AM
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...
December 10th, 2014, 06:38 AM
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...
December 10th, 2014, 04:02 AM
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...
December 4th, 2014, 10:20 AM
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...
October 2nd, 2014, 03:15 AM
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...
October 1st, 2014, 12:42 PM
Sorry, I have had issues with my internet connection. Post has now been edited.
October 1st, 2014, 08:58 AM
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...
March 15th, 2014, 09:24 AM
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!
March 15th, 2014, 05:54 AM
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!
March 15th, 2014, 04:53 AM
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...
March 14th, 2014, 10:08 AM
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...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!