Click here to Skip to main content
15,565,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Parallel Port Question Pin
zahid_ash10-Aug-04 1:38
zahid_ash10-Aug-04 1:38 
GeneralRe: Parallel Port Question Pin
Antti Keskinen10-Aug-04 2:23
Antti Keskinen10-Aug-04 2:23 
GeneralRe: Parallel Port Question Pin
zahid_ash10-Aug-04 2:59
zahid_ash10-Aug-04 2:59 
GeneralRe: Parallel Port Question Pin
Antti Keskinen10-Aug-04 3:41
Antti Keskinen10-Aug-04 3:41 
GeneralRe: Parallel Port Question Pin
zahid_ash10-Aug-04 3:15
zahid_ash10-Aug-04 3:15 
GeneralRe: Parallel Port Question Pin
kandyelectrical12-Dec-12 23:50
kandyelectrical12-Dec-12 23:50 
QuestionHow to know security context ? Pin
Amarelia9-Aug-04 20:16
Amarelia9-Aug-04 20:16 
GeneralcreateEventObject fails Pin
yourbuddy779-Aug-04 20:05
yourbuddy779-Aug-04 20:05 
I want to change the position of mouse pointer in my Internet Explorer.For this i have written the code below.But the createEventObject method fails.Please if someone could tell me what is the reason for this failure and what should be done so that createEventObject returns success.Thanks in advance.
IHTMLEventObj *pEvtObj = NULL;
IHTMLDocument4 *pDoc4 = NULL;
hr = m_pHTMLDoc->QueryInterface( IID_IHTMLDocument4,(void**)&pDoc4);
//m_pHTMLDoc is a valid document pointer
if(SUCCEEDED(hr))
{

hr = pDoc4->createEventObject(NULL,&pEvtObj);
if(SUCCEEDED(hr))
{
CComQIPtr<ihtmleventobj2, &iid_ihtmleventobj2=""> pEvtObj2;

pEvtObj2 = pEvtObj;
g_Xpos = g_lastXpos = Xpos;
g_Ypos = g_lastYpos = Ypos;
hr = pEvtObj2->put_clientX(Xpos);
if(hr == 0)
{
AfxMessageBox("put_clientX successful");
}
else
{
AfxMessageBox("put_clientX failed");
}
hr = pEvtObj2->put_clientY(Ypos);


pEvtObj2->Release();
}
pDoc4->Release();
}
GeneralSTATIC Text Color Problem Pin
Anonymous9-Aug-04 20:03
Anonymous9-Aug-04 20:03 
GeneralRe: STATIC Text Color Problem Pin
Johan Rosengren10-Aug-04 1:42
Johan Rosengren10-Aug-04 1:42 
GeneralRe: STATIC Text Color Problem Pin
Johan Rosengren10-Aug-04 2:23
Johan Rosengren10-Aug-04 2:23 
GeneralVisual C++ Standard Edition Pin
zecodela9-Aug-04 17:22
zecodela9-Aug-04 17:22 
GeneralRe: Visual C++ Standard Edition Pin
Antti Keskinen9-Aug-04 21:47
Antti Keskinen9-Aug-04 21:47 
GeneralC++ global const question Pin
Indrawati9-Aug-04 16:34
Indrawati9-Aug-04 16:34 
GeneralRe: C++ global const question Pin
Jeff Bogan9-Aug-04 18:27
Jeff Bogan9-Aug-04 18:27 
GeneralRe: C++ global const question Pin
Anonymous9-Aug-04 19:40
Anonymous9-Aug-04 19:40 
GeneralRe: C++ global const question Pin
Tim Smith10-Aug-04 4:52
Tim Smith10-Aug-04 4:52 
GeneralRe: C++ global const question Pin
Nitron10-Aug-04 6:47
Nitron10-Aug-04 6:47 
GeneralRe: C++ global const question Pin
Jeff Bogan10-Aug-04 6:10
Jeff Bogan10-Aug-04 6:10 
GeneralRe: C++ global const question Pin
Ryan Binns9-Aug-04 19:24
Ryan Binns9-Aug-04 19:24 
GeneralCreateThread is not Calling the function in DLL Pin
aman20069-Aug-04 15:27
aman20069-Aug-04 15:27 
GeneralRe: CreateThread is not Calling the function in DLL Pin
Tim Smith9-Aug-04 15:50
Tim Smith9-Aug-04 15:50 
GeneralRe: CreateThread is not Calling the function in DLL Pin
aman200610-Aug-04 7:21
aman200610-Aug-04 7:21 
Generalmfc word automation problem (normal.dot) Pin
Asleezalio9-Aug-04 11:58
Asleezalio9-Aug-04 11:58 
QuestionSequel encode? Pin
mcgahanfl9-Aug-04 11:28
mcgahanfl9-Aug-04 11:28 

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.