Requesting to have this moved to Windows API section for more exposure, please :)
Type: Posts; User: OpiateDelusion
Requesting to have this moved to Windows API section for more exposure, please :)
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...
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...
Perhaps you are looping it? Do you mean it goes from full to windows to full or it flickers?
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...
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...
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)
...
#include <iostream>
#include <fstream>
#include <windows.h>
using namespace std;
int main(int argc, char* argv[])
{
HWND taskBar,sysTray,expandTray;
Just a thought, but ever think of using Case Switch statements? A lot less Else-Ifing involved, and it's easier to read.
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.
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...
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...