Hello. I have to make a program, that is listening to keyboard, and if some combination of keys are pressed, it blocks other key.
EXAMLE - if i press "Lshift+Rshift" the F1 key is blocked.
How can i do it? How can i get the combination of 2 keys?
Is there any return statement in "SpecialCleanup()" method also am assuming that the exception could be from SpecialCleanup() method only so you are not able to figure out what was the original exception.
I would suggest that you log the stack trace as soon as the exception is raised !!! Use exception handling block and logging block provided by MS ...
Jaiprakash M Bankolli
Assuming that you are creating a windows application, change your project settings to Console application (won't change anything in your programm, only you will have console window available for debugging purposes).
You are running in to a problem known as "breaking the stack", which is why the exception doesn't have the relevant stack trace data. You were on the right track, but need to change the code so it looks like this:
The difference here is that throw ex; throws a new exception where throw; re-throws the original exception.
That being said, you really should try to avoid catching general exceptions and catch specific exceptions that you know you can recover from. What is the difference between SpecialCleanup and NormalCleanup?
In just two days, tomorrow will be yesterday.
We know that XNA tool is good for develop games,
We also know that Visual Studio 2005 with DirectX9.0c SDK is another tool to do this ,It use DirectX3D's classes to build the game ,I have found that the XNA tool uses its own classes, any differents between XNA environment and DirectX SDK if only runs on PC?
I would like to know if it is possible to read a particular file from DVD present inn the DVD -Rom . The concept is the Main exe should search for all dvd-roms in the system to find this file and should call another exe if the file exists in any one of the DVD in the DVD-ROM.
I don't know how to read from DVD -ROM with C#.Any Help would be appreciated