Questions tagged as 'winapi'

0
answers

C ++ Position on the screen looks strange when I try to convert from GetCursorPos to SendInputs

I used the GetCursorPos function to get some positions on the screen that I would like the mouse to be able to click to perform a task for me and automate the service. I tried to select these positions with SetCursorPos and it w...
asked by 21.11.2018 / 03:00
0
answers

Dynamic memory with pointers in c ++

Hello, I'm starting to use dynamic memory in C ++, but I came across a problem. When I do new CHAR_INFO[3] , say    can not convert 'CHAR_INFO * {aka _CHAR_INFO *}' to 'int *' in assignment and still gives error in this line of code...
asked by 12.07.2018 / 18:49
0
answers

Define a custom icon on the console

Hello, I wanted to change the icon that appears on the console. For this, I created 3 files: resource.rc resource.h main.cpp The contents of each file are as follows:    resource.rc : #include "resource.h" IDI_MYICON ICON...
asked by 10.07.2018 / 16:02
1
answer

What is the difference between GetKeyState () and GetAsyncKeyState ()?

I have always used GetKeyState() to know if the user is pressing a key, but I see that many people use GetAsyncKeyState() more. With this I got the following doubts: What's the difference between the 2? When should I use e...
asked by 15.08.2017 / 22:32