Click here to Skip to main content
15,911,789 members
Home / Discussions / COM
   

COM

 
AnswerRe: Invoking exe from windows service(COM Exe runs as service) Pin
Ahmed Charfeddine4-Nov-09 2:31
Ahmed Charfeddine4-Nov-09 2:31 
QuestionWord Document Object: Tables and Page Breaks Pin
Gary Greenacre2-Nov-09 11:09
Gary Greenacre2-Nov-09 11:09 
AnswerRe: Word Document Object: Tables and Page Breaks Pin
Stuart Dootson3-Nov-09 3:13
professionalStuart Dootson3-Nov-09 3:13 
Questionwhat psf file is? Pin
bingxuefly1-Nov-09 22:38
bingxuefly1-Nov-09 22:38 
AnswerRe: what psf file is? Pin
Richard MacCutchan2-Nov-09 5:04
mveRichard MacCutchan2-Nov-09 5:04 
GeneralRe: what psf file is? Pin
bingxuefly2-Nov-09 23:03
bingxuefly2-Nov-09 23:03 
GeneralRe: what psf file is? Pin
Richard MacCutchan2-Nov-09 23:27
mveRichard MacCutchan2-Nov-09 23:27 
QuestionIssue: adding functions to existing COM EXE [modified] Pin
KTTransfer1-Nov-09 21:38
KTTransfer1-Nov-09 21:38 
AnswerRe: Issue: adding functions to existing COM EXE Pin
serzh833-Nov-09 1:34
serzh833-Nov-09 1:34 
AnswerRe: Issue: adding functions to existing COM EXE Pin
Roger Stoltz3-Nov-09 4:41
Roger Stoltz3-Nov-09 4:41 
QuestionActivex control to capture webcam and send to a publishing point Pin
Fil_Bell1-Nov-09 6:45
Fil_Bell1-Nov-09 6:45 
AnswerRe: Activex control to capture webcam and send to a publishing point Pin
Ahmed Charfeddine4-Nov-09 2:36
Ahmed Charfeddine4-Nov-09 2:36 
QuestionHow to capture "What I see" in my monitor, in a Windows 7 in realtime with a really highframe rate? Pin
sinosoidal30-Oct-09 3:07
sinosoidal30-Oct-09 3:07 
AnswerRe: How to capture "What I see" in my monitor, in a Windows 7 in realtime with a really highframe rate? Pin
«_Superman_»30-Oct-09 15:48
professional«_Superman_»30-Oct-09 15:48 
QuestionUnhandled exception in CreateCompatibleBitmap() Pin
tibbasultanpur29-Oct-09 18:29
tibbasultanpur29-Oct-09 18:29 
AnswerRe: Unhandled exception in CreateCompatibleBitmap() Pin
Covean30-Oct-09 3:31
Covean30-Oct-09 3:31 
AnswerRe: Unhandled exception in CreateCompatibleBitmap() Pin
serzh833-Nov-09 1:59
serzh833-Nov-09 1:59 
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 | ;-)

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.