Click here to Skip to main content
15,910,009 members
Home / Discussions / COM
   

COM

 
GeneralRe: Simple Basic, tricky C++ Pin
Anonymous8-Feb-05 10:54
Anonymous8-Feb-05 10:54 
GeneralImporting C# methods Pin
Fragging7-Feb-05 2:19
Fragging7-Feb-05 2:19 
GeneralRe: Importing C# methods Pin
Fragging28-Feb-05 3:10
Fragging28-Feb-05 3:10 
GeneralRe: Importing C# methods Pin
MichaelLeslie30-Apr-08 12:20
MichaelLeslie30-Apr-08 12:20 
GeneralUsing DsoFramer.OCX Pin
Jetli Jerry5-Feb-05 2:57
Jetli Jerry5-Feb-05 2:57 
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 
Hi Jetli,

Your code sounds gud to be gud to me.
Jetli Quoted :
"protect" property doesnot disable typing..

One possible mistake you have done is this
dispparams.rgvarg[0].iVal = 2 ;
It should be dispparams.rgvarg[0].lVal = 1 ;
You are saying that dispparams.rgvarg[0].vt = VT_I4; and storing short value in long ? Wink | ;)
Well "Protect" method disables the typing in word document(I am very sure on this), have you check the return code in your automation routine for
"protect" method ?

Jetli Quoted :
"Commandbars" is for toolbard floating in word window. ( which i can control via Dsoframer control.
Is there any property / suggestion for doing this?

Word context menus are comes under the category of "CommandBars" only, you can disable the context menus in following manner ...

1.)Get IDispatch for embeeded Active Document.
2.)Ask IDispatch for DISPATCH_PROPERTYGET - "CommandBars", it will return disp ptr for CommandBars. This property takes one param i.e. nothing but id of that command bar (in word id for context menus starts from 38)
(you can use VBA to check the codes for these context menus for different office version Smile | :) )
3.)Now invoke the "Enabled" method using this disp ptr. This method takes 1 param of type BOOL.

My suggestion is that put all the above three steps in one for/while loop.
That's Context menus are disabled ! Smile | :)

All the very best !

Cool | :cool:

Cheers,
Vishal

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 
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 

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.