Created
October 10, 2011 21:34
-
-
Save davespanton/1276619 to your computer and use it in GitHub Desktop.
Native process example pt 2.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include <iostream> | |
#include <sstream> | |
#include <windows.h> | |
int _tmain(int argc, _TCHAR* argv[]) | |
{ | |
POINT pt; | |
int i = 1; | |
while( i >= 0 ) | |
{ | |
GetCursorPos(&pt); | |
std::string s; | |
std::string t; | |
std::stringstream sout; | |
std::stringstream tout; | |
sout<<pt.x; | |
s = sout.str(); | |
tout<<pt.y; | |
t = tout.str(); | |
std::cout << s + " : " + t; | |
std::cout.flush(); | |
Sleep(100); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment