Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Different Between the operator '*' and '&' Pin
jeansea5-Mar-09 5:19
jeansea5-Mar-09 5:19 
GeneralRe: Different Between the operator '*' and '&' Pin
ky_rerun5-Mar-09 5:56
ky_rerun5-Mar-09 5:56 
AnswerRe: Different Between the operator '*' and '&' Pin
Maximilien5-Mar-09 4:42
Maximilien5-Mar-09 4:42 
GeneralRe: Different Between the operator '*' and '&' Pin
PIEBALDconsult5-Mar-09 10:38
mvePIEBALDconsult5-Mar-09 10:38 
GeneralRe: Different Between the operator '*' and '&' Pin
«_Superman_»5-Mar-09 17:34
professional«_Superman_»5-Mar-09 17:34 
QuestionCan anybody let me know how to handle the move event in SDI Pin
ashokbngr5-Mar-09 3:24
ashokbngr5-Mar-09 3:24 
AnswerRe: Can anybody let me know how to handle the move event in SDI Pin
Code-o-mat5-Mar-09 4:02
Code-o-mat5-Mar-09 4:02 
QuestionUnable to control mouse events Pin
AprNgp5-Mar-09 0:23
AprNgp5-Mar-09 0:23 
I am attempting to control mouse events, like moving the mouse and pressing any mouse key ...
I am using the following code to set the mouse position as (0,0)
LPINPUT i;
   MOUSEINPUT mi;
   mi.dx=0;
   mi.dy=0;
   mi.dwFlags=MOUSEEVENTF_LEFTDOWN;
   mi.time=0;
   mi.dwExtraInfo=GetMessageExtraInfo();
   mi.mouseData=0;
   i[0].mi=mi;
   i[0].type=INPUT_MOUSE;
   SendInput(1,i,sizeof(i));

But, I am getting an exception at the line
i[0].mi=mi;

Actually I want to control the mouse pointer through an external hardware, which will be connected at the serial port.
I will read the data from the serial port like mouse movement and any mouse key being pressed, then SET this mouse status to the system mouse ....this is my ultimate aim ...

So I wrote the above code to set the mouse position first, but its not working ...

Please someone help me here ...

Apurv

A man is but the product of his thoughts. What he thinks, he becomes.
.......Mahatma Gandhi


Be the change you want to see in the world.
.......Mahatma Gandhi

AnswerRe: Unable to control mouse events Pin
Akt_4_U5-Mar-09 0:29
Akt_4_U5-Mar-09 0:29 
GeneralRe: Unable to control mouse events Pin
AprNgp5-Mar-09 0:32
AprNgp5-Mar-09 0:32 
GeneralRe: Unable to control mouse events Pin
«_Superman_»5-Mar-09 0:42
professional«_Superman_»5-Mar-09 0:42 
GeneralRe: Unable to control mouse events Pin
AprNgp5-Mar-09 0:49
AprNgp5-Mar-09 0:49 
GeneralRe: Unable to control mouse events Pin
«_Superman_»5-Mar-09 0:57
professional«_Superman_»5-Mar-09 0:57 
GeneralRe: Unable to control mouse events Pin
Akt_4_U5-Mar-09 0:47
Akt_4_U5-Mar-09 0:47 
QuestionAssertion in atlsimpstr Pin
Davitor4-Mar-09 23:47
Davitor4-Mar-09 23:47 
AnswerRe: Assertion in atlsimpstr Pin
Hamid_RT4-Mar-09 23:59
Hamid_RT4-Mar-09 23:59 
AnswerRe: Assertion in atlsimpstr Pin
Cedric Moonen5-Mar-09 0:06
Cedric Moonen5-Mar-09 0:06 
QuestionProblem in Mutex with System Tray Icon. Pin
Le@rner4-Mar-09 23:25
Le@rner4-Mar-09 23:25 
AnswerRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat4-Mar-09 23:59
Code-o-mat4-Mar-09 23:59 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Le@rner5-Mar-09 0:14
Le@rner5-Mar-09 0:14 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat5-Mar-09 0:34
Code-o-mat5-Mar-09 0:34 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Le@rner5-Mar-09 1:13
Le@rner5-Mar-09 1:13 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat5-Mar-09 1:22
Code-o-mat5-Mar-09 1:22 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Le@rner7-Aug-09 18:17
Le@rner7-Aug-09 18:17 
GeneralRe: Problem in Mutex with System Tray Icon. Pin
Code-o-mat7-Aug-09 21:29
Code-o-mat7-Aug-09 21:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.