I'm looking for a way to temporarily disable ctrl+alt+del on Windows XP using the win32 api. (Acutally I'm trying to disable keyboard input entirely, but I've managed to intercept everything except...
Type: Posts; User: Nippashish
I'm looking for a way to temporarily disable ctrl+alt+del on Windows XP using the win32 api. (Acutally I'm trying to disable keyboard input entirely, but I've managed to intercept everything except...
Is there a WINAPI function for this, or another simple way I can ask the user a yes or no question and get the answer?
It's directing the compiler to the global namespace.
ex:
#include <iostream>
int bar()
{
return 5;
Thanks, guys. I've got it working now.
That's a great app Stoned Coder, now I can actually read my errors.
Unfortianately I'm still stuck. I started over, and right now I have the most basic possible version of what I'm trying to do,...
Is there any reason that you need the lowest common factor? If you're just adding/subtracting fractions any common factor would do. So unless there is an actual need for the LOWEST common factor I...
Excellent.
*goes off to search for other errors*
EDIT: That code works, but gives me 110 warnings.
Im trying to make a DOS like program (you type in a command and some arguments and it runs a function based on your input). I want to store these functions in a map, however, when I try and compile...
Well, I found a rather ugly solution to your problem, there's probably a better, more readable, way though.
However, it should do what you want, the boxes will stay the same size as long as there...
I'm 15, started seriously programing in September of 2001 (not in school, it just happens that I started in Spetember). I learnt HTML when I was like 9, and did some logo in 3rd grade, but I don't...
The first one is assigning the pointer to an address. The second is assigning a value to the memory pointed to by the pointer.
int address = 1000;
int *ptr = (int*)address;
is equivelent to:
...
I need to know the syntax for declaring a pointer to a templated function. More specificly, I need to be able to pass a pointer to a function declared as:
template <class T>
int foo(const T&,...
Yeah, that's it. I assumed prototyping the class at the beginning of the file would let me do that. Sense that doesn't work, is there any way I can write it so that I CAN write my classes/member...
Ok, heres some more code:
class InvItem; // linked list superclass
class InvHead; // head
class InvTail; // tail
// INVITEM
class InvItem
I'm trying to compile a program I made, however, I keep getting an error form MSVC++ that one of my classes has no constructors. (Not that there is no appropriate constructor, it's telling me I don't...
Polymorphic: The reason that itsRadius is declared on the free store is because the particular chapter in the book discusses the difference between deep and shallow copies. That is just being used an...
You can use a pointer as long as you remember to free up the memory when the object is destroyed.
class Fighter
{
public:
Fighter();
~Fighter() { delete [] _maxHpList; }
private:
int...
void findBraces(char *pc)
{
int open=0, close=0, ocount=0, ccount=0, i;
for (i=0;pc[i] != '\0';i++)
{
if (pc[i] == '[')
{
if (ocount == -1)
open = i+1;
++ocount;
I never really used strings before so it just never occured to me, I'm using them now though, and it's making my life a hell of a lot easier :D.
And I'm from the Bridgewater area.
So... what's the second paramiter of strtod() supposed to be?
Yep, that's what I needed, thanks.
Is there a function in any of the standard libraries that does this, or do I have ot create my own?
That he could, that he could. Maybe I should finish reading before I hit reply next time. :D
Just for the record, any non prime number is divisible by a prime number that is < itself. Also checking to sqrt(n) rather than n/2 to figure out if it's a prime ups speed by a LOT.
Thanks, I knew it would be something easy. :D