Search:

Type: Posts; User: Nippashish

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    1,615

    Disabling ctrl+alt+del?

    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...
  2. Thread: Prompt?

    by Nippashish
    Replies
    1
    Views
    913

    Prompt?

    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?
  3. Replies
    23
    Views
    2,198

    It's directing the compiler to the global...

    It's directing the compiler to the global namespace.

    ex:


    #include <iostream>

    int bar()
    {
    return 5;
  4. Replies
    5
    Views
    2,151

    Thanks, guys. I've got it working now.

    Thanks, guys. I've got it working now.
  5. Replies
    5
    Views
    2,151

    That's a great app Stoned Coder, now I can...

    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,...
  6. Replies
    9
    Views
    4,137

    Is there any reason that you need the lowest...

    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...
  7. Replies
    5
    Views
    2,151

    Excellent. *goes off to search for other...

    Excellent.

    *goes off to search for other errors*

    EDIT: That code works, but gives me 110 warnings.
  8. Replies
    5
    Views
    2,151

    Making a map containing function pointers

    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...
  9. Replies
    1
    Views
    806

    Well, I found a rather ugly solution to your...

    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...
  10. Poll: I'm 15, started seriously programing in September...

    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...
  11. Replies
    16
    Views
    2,032

    The first one is assigning the pointer to an...

    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:
    ...
  12. Replies
    1
    Views
    818

    Pointer to templated function

    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&,...
  13. Replies
    4
    Views
    2,644

    Yeah, that's it. I assumed prototyping the class...

    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...
  14. Replies
    4
    Views
    2,644

    Ok, heres some more code: class...

    Ok, heres some more code:



    class InvItem; // linked list superclass
    class InvHead; // head
    class InvTail; // tail

    // INVITEM
    class InvItem
  15. Replies
    4
    Views
    2,644

    Can't find my constructor

    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...
  16. Polymorphic: The reason that itsRadius is...

    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...
  17. Replies
    5
    Views
    1,004

    You can use a pointer as long as you remember to...

    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...
  18. Replies
    4
    Views
    1,208

    void findBraces(char *pc) { int open=0,...

    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;
  19. Replies
    8
    Views
    1,791

    I never really used strings before so it just...

    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.
  20. Replies
    8
    Views
    1,791

    So... what's the second paramiter of strtod()...

    So... what's the second paramiter of strtod() supposed to be?
  21. Replies
    8
    Views
    1,791

    Yep, that's what I needed, thanks.

    Yep, that's what I needed, thanks.
  22. Replies
    8
    Views
    1,791

    Char array to a float?

    Is there a function in any of the standard libraries that does this, or do I have ot create my own?
  23. Replies
    6
    Views
    2,368

    That he could, that he could. Maybe I should...

    That he could, that he could. Maybe I should finish reading before I hit reply next time. :D
  24. Replies
    6
    Views
    2,368

    Just for the record, any non prime number is...

    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.
  25. Replies
    2
    Views
    1,171

    Thanks, I knew it would be something easy. :D

    Thanks, I knew it would be something easy. :D
Results 1 to 25 of 35
Page 1 of 2 1 2