This page at codeproject might be of some use. It's about trapping ctrl alt del.
http://www.codeproject.com/system/preventclose.asp
Type: Posts; User: Codulation
This page at codeproject might be of some use. It's about trapping ctrl alt del.
http://www.codeproject.com/system/preventclose.asp
You're going to have to be a little bit more specific with a question describing exactly what you are having problems with and showing relevant code.
>does the hotkey have to be pressed in the window of the program
A hotkey is handled at the Windows level and has nothing to do with your program. It's only a way to tell Win. to launch your...
One other possible interpretation:
He wants to make a hotkey to launch his program from anywhere within windows.
> You seriously have to word your question better. It's sort of unintelligible...
Search Google for big int class and you will get lots of pre-written classes that overload the operators. You can look at these to see where to start. Basically you can store a num of any length in...
Here's another math func. ref. http://cppreference.com/stdmath.html
Yikes! Thanks Prelude, I must return to active coding.... Seeing lots of php recently hasn't helped either.
Maybe something like this... not very pretty either
switch(int(option)){
case: 80 // P
case: 71 // G
case: 68 // D
case: 70 // F
case: 84 // T
case: 87 // W
if (option != 'P' && option != 'G' && option != 'D'
&& option != 'F' && option != 'T' && option != 'W'
&& option != 'Q')
cout << "\a\n *** ATTENTION *** Use Selections:";
cout...
Sorry, I replied before your edit adding the 2nd and 3rd alternatives.
Hence my quotes around the word bad.
I cannot argue here.
> if(x < 0) x = -x;
Ok, you win.
>>if(x < 0) x = x * -1;
>#include <cmath>
>x = abs(x);
I vote for one fewer include.
>Do squares of unreal numbers really count as perfect squares?
A program can react in different ways...
Or if you want to automatically change negative numbers to positive and continue...
if(x < 0) x = x * -1;
-d-
Welcome to the forums bcianfrocca, As far as doing h/w, cīmon, you really need to give it a try, and when you run into a problem then ask a specific question. Hey, if you really want to be a...
Most likely you're not handling WM_CLOSE and WM_DESTROY correctly:
case WM_CLOSE:
DestroyWindow(hWndYourWindow);
break;
case WM_DESTROY:
PostQuitMessage(0);
...
>a background process that would intercept keyboard input
search the board for keyboard hook
A suggestion. Consider using the WIN32 APIs to set some system accelerators for the keys you want to...
Well I have changed the Search by name function to walk through every element in the map and search each individual name. I still think there has got to be a better way, maybe some kind of...
Thank you both for your replies. I looked at the dinkumware site and I like their reference material- quite comprehensive. As far as your code jlou, I should have come back here sooner- I worked...
I see a ray of hope with multimap's member functions lower_bound upper_bound and equal_range for finding multiple elements with the same key. I am still looking for some ideas on how to search...
so in other words send your kb_events to do this:
1. Depress Shift key
2. Depress A key
3. Release A key
4. Release Shift key
I've just bought an STL tutorial book, and going though it has been lots of fun, but I have some questions that I haven't been able to answer with the book or researching on the net. I've created a...
Should we assume you are outputting the text to a console window and your target OS is MS Windows? [maybe you should tell us]
Well, maybe there's something special about a "clone" function that I havn't heard of, but if you want to be able to copy an instance of a class then I suggest searching the board & google for...
::begin ominous voice
You don't want to write this program. You want to search for some freeware that will beautify C/C++ code.
::end ominous voice
If no one has mentioned it, make sure you're compiling for a console program. In DevC++, Projects -> Project Options Make sure
1) the "Compile C++" box is checked
2) the "Do not create a...