|I'm using dev-cpp 184.108.40.206 with the standard compiler.|
I have truged along and finally written my first c++ program, a very simple windows 2000 and up console label printing program. Now I'm basically at the stage of fixing the last couple of issues, but I'm a bit stuck.
The first issue is that the whole program revolves around ReadConsoleInput and it works fine except I want to attach the standard console(non quick edit) context menu (mark, edit, paste, ect) to right clicks.
Since I'm using ReadConsoleInput it's catching right clicks and the menu doesn't appear, I have tried WriteConsoleInput with the right click event record but ReadConsoleInput catches it again(it's enclosed in a while loop) and causes an infinite loop.
The second issue is that since the program is linked to functions introduced in windows 2000 I want to find a way to gracefully exit on prior versions of windows. I have tried VerifyVersionInfo to no avail(probably because it's also a win2000 function). Even still on testing on windows 98 it didn't even get a chance to execute before a dialogue warned that it was linked to GetConsoleWindow.
The third and final issue I'm having is a focus issue on a GetOpenFileName dialogue, I am already passing the console window handle to the dialogue, but still it's out of focus the first time it is called after program start.
Any help or insight on these issue will be much appreciated. Here is a link to the whole project(spoiler: Over 3000 lines of noob un-commented code) including an executable.
If anyone happens to test it on non XP(and 2000 or above) systems I would be happy to here if it runs or if there are any problems.