Click here to Skip to main content
15,790,625 members
Home / Discussions / COM
   

COM

 
AnswerRe: Run Only One Instance Of AddOn In Multiple IE Win Pin
KarstenK24-Feb-10 4:40
mveKarstenK24-Feb-10 4:40 
AnswerRe: Run Only One Instance Of AddOn In Multiple IE Win Pin
R@jeev K R7-Mar-10 20:43
R@jeev K R7-Mar-10 20:43 
Questioncom memory management Pin
ramina sen23-Feb-10 22:15
ramina sen23-Feb-10 22:15 
AnswerRe: com memory management Pin
Richard MacCutchan23-Feb-10 23:00
mveRichard MacCutchan23-Feb-10 23:00 
AnswerRe: com memory management Pin
KarstenK24-Feb-10 5:20
mveKarstenK24-Feb-10 5:20 
QuestionFew basics about COM Pin
tasumisra21-Feb-10 19:09
tasumisra21-Feb-10 19:09 
AnswerRe: Few basics about COM Pin
Richard MacCutchan21-Feb-10 22:55
mveRichard MacCutchan21-Feb-10 22:55 
Questionhandle DISPID_NEWWINDOW2 or 3 Pin
rustok19-Feb-10 22:46
rustok19-Feb-10 22:46 
Hi all. Show me, please, how to handle this event, to the link opened in same window.
In msdn says that must be replaced by a pointer to IDispatch, but it does not work.
VARIANT * v = &pDispParams->rgvarg[1];

if (v->vt == (VT_BYREF | VT_VARIANT)) v = v->pvarVal; // v->vt == (VT_BYREF | VT_VARIANT)

IDispatch* *pdisp = 0;
if ((v->vt & VT_TYPEMASK) == VT_DISPATCH){ // v->vt == (VT_BYREF | VT_VARIANT)

    pdisp = (v->vt & VT_BYREF) ? v->ppdispVal : & (v->pdispVal);
    if (pdisp[0] != NULL){ // == 0
        pdisp[0]->Release();
    }
    g_pSite->get_Application(pdisp); // IWebBrowser2* g_pSite 
}

Values that come - commented out. What am I doing wrong? Why not this work? How can I solve this problem?
In handler DISPID_NEWWINDOW3 event comes value URL of the new windows, but don't comes other values needed for navigate2, therefore, this solution does not suit me.

Sorry for my english. Smile | :)
AnswerRe: handle DISPID_NEWWINDOW2 or 3 Pin
0day7-Mar-10 22:46
0day7-Mar-10 22:46 
QuestionCOM objects to capture screen Pin
Alexandr Kucher18-Feb-10 10:26
Alexandr Kucher18-Feb-10 10:26 
AnswerRe: COM objects to capture screen Pin
«_Superman_»18-Feb-10 19:10
professional«_Superman_»18-Feb-10 19:10 
GeneralRe: COM objects to capture screen Pin
Alexandr Kucher19-Feb-10 2:27
Alexandr Kucher19-Feb-10 2:27 
QuestionProblem in Using the Custom made OCX Pin
quantimizer18-Feb-10 4:35
quantimizer18-Feb-10 4:35 
AnswerRe: Problem in Using the Custom made OCX Pin
Jonathan Davies18-Feb-10 6:51
Jonathan Davies18-Feb-10 6:51 
Questionaccessing a com from remote machine Pin
tasumisra18-Feb-10 1:53
tasumisra18-Feb-10 1:53 
AnswerRe: accessing a com from remote machine Pin
quantimizer18-Feb-10 4:40
quantimizer18-Feb-10 4:40 
AnswerRe: accessing a com from remote machine Pin
quantimizer18-Feb-10 18:49
quantimizer18-Feb-10 18:49 
GeneralRe: accessing a com from remote machine Pin
tasumisra18-Feb-10 19:35
tasumisra18-Feb-10 19:35 
QuestionHelp in presentation Pin
tasumisra16-Feb-10 19:28
tasumisra16-Feb-10 19:28 
AnswerRe: Help in presentation Pin
Richard MacCutchan16-Feb-10 20:28
mveRichard MacCutchan16-Feb-10 20:28 
QuestionNeed help to solve issue with COM interface Pin
sukumarvenkata16-Feb-10 4:28
sukumarvenkata16-Feb-10 4:28 
AnswerRe: Need help to solve issue with COM interface Pin
Jonathan Davies16-Feb-10 13:21
Jonathan Davies16-Feb-10 13:21 
AnswerRe: Need help to solve issue with COM interface Pin
KingsGambit16-Feb-10 20:14
KingsGambit16-Feb-10 20:14 
AnswerRe: Need help to solve issue with COM interface Pin
Roger Stoltz16-Feb-10 23:03
Roger Stoltz16-Feb-10 23:03 
QuestionHow to compile COM components in Visual Studio(2010).NET written in VC6.0 OR Visual Studio.NET(2003)[modified] Pin
glitteringsound16-Feb-10 2:24
glitteringsound16-Feb-10 2:24 

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.