Search:

Type: Posts; User: OpiateDelusion

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,938

    Requesting to have this moved to Windows API...

    Requesting to have this moved to Windows API section for more exposure, please :)
  2. Replies
    6
    Views
    2,737

    Aww. It was supposed to be in quotes. I have...

    Aww. It was supposed to be in quotes. I have corrected it, but it still doesn't seem to work.

    Regardless, if creating a device handler isn't meant for an image, then I don't really know how to...
  3. Replies
    6
    Views
    2,737

    GetPixel and CreateDC help. (winapi)

    I've been creating a little program to read in a file (Using CreateDC to create the device handle) and then send it to GetPixel to be read into a RGB value.

    There are two problems so far. I have...
  4. Replies
    14
    Views
    3,128

    Perhaps you are looping it? Do you mean it goes...

    Perhaps you are looping it? Do you mean it goes from full to windows to full or it flickers?
  5. Replies
    14
    Views
    3,128

    keybd_event(VK_MENU, 0x38, 0, 0);...

    keybd_event(VK_MENU, 0x38, 0, 0);
    keybd_event(VK_RETURN, 0x1c, 0, 0);
    keybd_event(VK_RETURN, 0x1c, KEYEVENTF_KEYUP, 0);
    keybd_event(VK_MENU, 0x38, KEYEVENTF_KEYUP, 0);

    Simulates the pressing of...
  6. Replies
    13
    Views
    2,989

    cin.get() gets the next item in the input buffer,...

    cin.get() gets the next item in the input buffer, so you might want to wipe the buffer, or it'll still continue if anything is in the buffer. Use cin.ignore() to wipe the buffer first, you stand a...
  7. Replies
    4
    Views
    1,938

    The Window class has a blank caption, so "" works...

    The Window class has a blank caption, so "" works
    When you use NULL, the operating system takes it upon itself to select the most relevent result for the first query (in this case, Shell_TrayWnd)
    ...
  8. Replies
    4
    Views
    1,938

    Weird FindWindow(Ex) errors

    #include <iostream>
    #include <fstream>
    #include <windows.h>

    using namespace std;


    int main(int argc, char* argv[])
    {
    HWND taskBar,sysTray,expandTray;
  9. Replies
    3
    Views
    1,132

    Just a thought, but ever think of using Case...

    Just a thought, but ever think of using Case Switch statements? A lot less Else-Ifing involved, and it's easier to read.
  10. Thanks for the suggestion, I plan to use it. I'd...

    Thanks for the suggestion, I plan to use it.
    I'd also like to learn how to reference an object from a function though, for later use of anything.
  11. It's still not looking at the address because...

    It's still not looking at the address because "itsHunger" in the object is staying the same, even though it should be going down by 10 (eat() - 10 from itHunger.) It makes a new object each time it...
  12. Accessing a class in a function using pointers

    This seems fairly easy, but I'm having a tough time accessing a class through pointers at any point in the code.

    The project is an easy pet simulator, much like a tamigochi. I am trying to feed my...
Results 1 to 12 of 12