Click here to Skip to main content
15,885,546 members
Home / Discussions / COM
   

COM

 
QuestionIs it possible for a 32-bit app to call a 64-bit COM server? Pin
darwei29-Oct-09 15:53
darwei29-Oct-09 15:53 
AnswerRe: Is it possible for a 32-bit app to call a 64-bit COM server? Pin
cariolihome7-Nov-09 10:59
cariolihome7-Nov-09 10:59 
QuestionCSharp com interop wrapper events... Pin
Arish rivlin26-Oct-09 20:11
Arish rivlin26-Oct-09 20:11 
AnswerRe: CSharp com interop wrapper events... Pin
«_Superman_»27-Oct-09 7:35
professional«_Superman_»27-Oct-09 7:35 
QuestionWhat happened to regtlib? Pin
RugbyLeague22-Oct-09 4:03
RugbyLeague22-Oct-09 4:03 
AnswerRe: What happened to regtlib? Pin
Baltoro22-Oct-09 13:53
Baltoro22-Oct-09 13:53 
QuestionCatch an event, fired within a custom late-bounded DLL Pin
MatthysDT20-Oct-09 1:37
MatthysDT20-Oct-09 1:37 
QuestionIWebbrowser: Toolbar handling and event for modifying content? Pin
AlexInter19-Oct-09 21:41
AlexInter19-Oct-09 21:41 
Hi all,

I'using COM and the IWebbrowser interface in a non MFC C++ application to have a preview on MS Office documents (doc, docx, xls, ...) in a frame of my application. Works quite fine, but I'm facing two problems, which I was not able to solve yet (though working on it for 2 weeks...Frown | :-( ).

1. I have installed IE8 and MS Office 2007. When I'm showing a Word file (.doc), then all the Word toolbars are shown and active. When I'm showing an Excel file (.xls) with the same Navigate command, all the Excel toolbars are hidden. I want these toolbars generally to be hidden. I've tried several things with the "FullScreen", "TheaterMode" and "Toolbar" commands, but these things don't seem to work with this interface !?
I have also tried the OLE command ExecWB with w->iexp->ExecWB(OLECMDID_HIDETOOLBARS, OLECMDEXECOPT_DODEFAULT, NULL, NULL);
This works fine, but unfortunately this is a toggle command. So I may only execute this command, if the toolbars are already shown, but I found no way to determine whether the toolbars are already shown.
Of course, I could check if I'm showing a Word file, and only then I will hide the toolbars. But I really don't like this extension depending behaviour. So does anyone have an idea to generally hide these toolbars? Or is there a possibility to change some flags in MS Word and MS Excel?

2. Is there a possibility to get to know whether a Word document is modified in my application frame? The problem is: Someone could write something to the Word file in my application window. If he then just closes the window, these modifications are lost. The "normal" MS office dialog, which asks whether you want to save your modifications or not, or just cancel, is not coming, while closing the window. I guess my window is already destroyed before this dialog has a chance to come, so I have to show my own dialog for asking before the window is destroyed. And therefore I need to know if the file has been modified.
I have already installed an event listener via the connection points technique to get the WebBrowserEvents, but I didn't find an event which is good for my needs.
Does anyone have an idea?

Thanks in advance
Alex

P.S. I'm a newbie to these COM things, so please be patient with me Wink | ;-)
AnswerRe: IWebbrowser: Toolbar handling and event for modifying content? Pin
Cool_Dev23-Oct-09 5:38
Cool_Dev23-Oct-09 5:38 
Questionerror C4772: #import referenced a type from a missing type library Pin
samfromcn18-Oct-09 20:15
samfromcn18-Oct-09 20:15 
AnswerRe: error C4772: #import referenced a type from a missing type library Pin
Stuart Dootson18-Oct-09 22:10
professionalStuart Dootson18-Oct-09 22:10 
GeneralRe: error C4772: #import referenced a type from a missing type library Pin
samfromcn18-Oct-09 23:35
samfromcn18-Oct-09 23:35 
GeneralRe: error C4772: #import referenced a type from a missing type library Pin
Stuart Dootson19-Oct-09 0:12
professionalStuart Dootson19-Oct-09 0:12 
Questiontwo questions about shell extensions Pin
xalspaero16-Oct-09 12:10
xalspaero16-Oct-09 12:10 
AnswerRe: two questions about shell extensions Pin
Michael Dunn22-Oct-09 14:05
sitebuilderMichael Dunn22-Oct-09 14:05 
GeneralRe: two questions about shell extensions [modified] Pin
xalspaero22-Oct-09 15:33
xalspaero22-Oct-09 15:33 
GeneralRe: two questions about shell extensions Pin
Michael Dunn27-Oct-09 14:30
sitebuilderMichael Dunn27-Oct-09 14:30 
QuestionGetting the running instance from PID using COM Pin
KTTransfer15-Oct-09 8:26
KTTransfer15-Oct-09 8:26 
AnswerRe: Getting the running instance from PID using COM Pin
«_Superman_»15-Oct-09 13:27
professional«_Superman_»15-Oct-09 13:27 
AnswerRe: Getting the running instance from PID using COM Pin
Vi216-Oct-09 0:30
Vi216-Oct-09 0:30 
GeneralRe: Getting the running instance from PID using COM Pin
KTTransfer18-Oct-09 6:31
KTTransfer18-Oct-09 6:31 
GeneralRe: Getting the running instance from PID using COM Pin
Vi218-Oct-09 19:11
Vi218-Oct-09 19:11 
GeneralRe: Getting the running instance from PID using COM Pin
KTTransfer18-Oct-09 22:32
KTTransfer18-Oct-09 22:32 
GeneralRe: Getting the running instance from PID using COM Pin
Jörgen Sigvardsson1-Nov-09 11:23
Jörgen Sigvardsson1-Nov-09 11:23 
Question[Message Deleted] Pin
Cool_Dev14-Oct-09 22:20
Cool_Dev14-Oct-09 22:20 

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.