J
James Park
I'm trying to use:
keybd_event(VK_SNAPSHOT, 0, 0, 0);
keybd_event(VK_SNAPSHOT, 0, KEYEVENTF_KEYUP, 0);
to take a screenshot, and use:
Clipboard::GetImage();
to retrieve it, but it returns a nullptr. It's strange though because I know
the screenshot is taken since I can paste just fine in mspaint. If I press
print screen manually, the GetImage() method works as it should. I'm using
VC++ Express 2k5 August CTP. Help would be much appreciated.
keybd_event(VK_SNAPSHOT, 0, 0, 0);
keybd_event(VK_SNAPSHOT, 0, KEYEVENTF_KEYUP, 0);
to take a screenshot, and use:
Clipboard::GetImage();
to retrieve it, but it returns a nullptr. It's strange though because I know
the screenshot is taken since I can paste just fine in mspaint. If I press
print screen manually, the GetImage() method works as it should. I'm using
VC++ Express 2k5 August CTP. Help would be much appreciated.