Click here to Skip to main content
15,914,795 members
Home / Discussions / COM
   

COM

 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore7-Feb-05 19:53
vishalmore7-Feb-05 19:53 
GeneralRe: Using DsoFramer.OCX Pin
Jetli Jerry9-Feb-05 0:13
Jetli Jerry9-Feb-05 0:13 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore9-Feb-05 1:11
vishalmore9-Feb-05 1:11 
GeneralRe: Using DsoFramer.OCX Pin
Jetli Jerry11-Feb-05 1:55
Jetli Jerry11-Feb-05 1:55 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore11-Feb-05 2:09
vishalmore11-Feb-05 2:09 
GeneralRe: Using DsoFramer.OCX Pin
Jetli Jerry11-Feb-05 2:51
Jetli Jerry11-Feb-05 2:51 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore13-Feb-05 19:47
vishalmore13-Feb-05 19:47 
GeneralRe: Using DsoFramer.OCX Pin
Jetli Jerry13-Feb-05 20:20
Jetli Jerry13-Feb-05 20:20 
Hi Vishal


I am able to excute protectBig Grin | :-D

Here Is Working Code....

LPDISPATCH lpDisp = m_shControl.GetActiveDocument();
EXCEPINFO ex;
OLECHAR FAR* szFunction;
DISPID dispid;
szFunction = OLESTR("Protect");
HRESULT hr = lpDisp->GetIDsOfNames (IID_NULL, &szFunction, 1,LOCALE_USER_DEFAULT, &dispid);
//dispid = 0x00000078


// Protect type,noreset,pass ,,,,,, Pass Ole in Reverse Order
VARIANT vArgs[3];
DISPPARAMS dpP;
dpP.cArgs = 3;
dpP.cNamedArgs = 0;
dpP.rgvarg = vArgsSaveAs;
VARIANT vOpt;
vOpt.vt = VT_ERROR;
vOpt.scode = DISP_E_PARAMNOTFOUND;

vArgsSaveAs[2].vt = VT_I4;
vArgsSaveAs[2].lVal = 1;
vArgsSaveAs[1] = vOpt;
vArgsSaveAs[0] = vOpt;
hr = lpDisp->Invoke(dispid, IID_NULL,
LOCALE_USER_DEFAULT, DISPATCH_METHOD,
&dpP, NULL, &ex, NULL);

And I am able to eat keystrokes via protection....Laugh | :laugh:

As Far As CommandBars

I have looked a bit.... I found Commandbar Property returns commandbar collection and error i was getting becoz "member not found" i guess it was becoz of not having appropriate Dispatch ptr.

Another thing i am not able to find Commandbars ( and also CommandBars Collection) Interface and its properties.. In OLe Viewer..... Any Ideas?

If you can give me some MORE info on 3 steps for disabling context menu... I will really appericiate.....

But Once Again Many Many Thanks To You.




Jetli
conclusion means Coming to wrong Decision with confidence
GeneralRe: Using DsoFramer.OCX Pin
vishalmore13-Feb-05 22:44
vishalmore13-Feb-05 22:44 
GeneralCOM DLL instantiated twice Pin
Pascal Pinchauret-Lamothe4-Feb-05 4:33
Pascal Pinchauret-Lamothe4-Feb-05 4:33 
GeneralRe: COM DLL instantiated twice Pin
rwestgraham6-Feb-05 11:50
rwestgraham6-Feb-05 11:50 
GeneralRe: COM DLL instantiated twice Pin
Pascal Pinchauret-Lamothe6-Feb-05 20:41
Pascal Pinchauret-Lamothe6-Feb-05 20:41 
GeneralRe: COM DLL instantiated twice Pin
rwestgraham7-Feb-05 0:22
rwestgraham7-Feb-05 0:22 
GeneralRe: COM DLL instantiated twice Pin
Pascal Pinchauret-Lamothe7-Feb-05 21:33
Pascal Pinchauret-Lamothe7-Feb-05 21:33 
GeneralRe: COM DLL instantiated twice Pin
rwestgraham8-Feb-05 9:02
rwestgraham8-Feb-05 9:02 
GeneralRe: COM DLL instantiated twice Pin
Pascal Pinchauret-Lamothe8-Feb-05 10:57
Pascal Pinchauret-Lamothe8-Feb-05 10:57 
GeneralRe: COM DLL instantiated twice Pin
engrx221-Sep-07 5:41
engrx221-Sep-07 5:41 
GeneralQuestion about [in, out] parameters Pin
AndyCheetham4-Feb-05 2:43
AndyCheetham4-Feb-05 2:43 
GeneralRe: Question about [in, out] parameters Pin
Mike Dimmick7-Feb-05 0:00
Mike Dimmick7-Feb-05 0:00 
GeneralRe: Question about [in, out] parameters Pin
Jörgen Sigvardsson8-Feb-05 9:55
Jörgen Sigvardsson8-Feb-05 9:55 
GeneralCOM + several classes Pin
Geert van Horrik3-Feb-05 22:52
Geert van Horrik3-Feb-05 22:52 
GeneralCom components Pin
masud_masud3-Feb-05 4:25
masud_masud3-Feb-05 4:25 
QuestionATL ActiveX - How to create the own Property Page? Pin
out_of_life3-Feb-05 0:02
out_of_life3-Feb-05 0:02 
AnswerRe: ATL ActiveX - How to create the own Property Page? Pin
out_of_life4-Feb-05 1:54
out_of_life4-Feb-05 1:54 
GeneralRTD (real Time Data) problem Pin
aswanee2-Feb-05 2:02
aswanee2-Feb-05 2:02 

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.