Click here to Skip to main content
15,895,667 members
Home / Discussions / COM
   

COM

 
GeneralRe: Support for ActiveX in MFC projects Pin
Ed016-Oct-03 3:20
Ed016-Oct-03 3:20 
GeneralAccessing a file's properties from a VC++ application Pin
jopett5-Oct-03 20:35
jopett5-Oct-03 20:35 
GeneralRe: Accessing a file's properties from a VC++ application Pin
algol14-Oct-03 21:59
algol14-Oct-03 21:59 
GeneralCOM Dialog box Pin
Anthony98873-Oct-03 8:48
Anthony98873-Oct-03 8:48 
GeneralRe: COM Dialog box Pin
Abhishek Srivastava19-Oct-03 21:01
Abhishek Srivastava19-Oct-03 21:01 
GeneralUse of CommandButton Active X Pin
Jo Fredrickson2-Oct-03 20:37
Jo Fredrickson2-Oct-03 20:37 
GeneralRe: Use of CommandButton Active X Pin
Amit Dey8-Oct-03 10:41
Amit Dey8-Oct-03 10:41 
GeneralIApplication woes Pin
AndyP12-Oct-03 0:36
AndyP12-Oct-03 0:36 
Hi,
I've had to dabble in COM (C++) for the current application my company is developing. It's a big application, that has a lot of debug output, and I thought it would be nice for my fellow developers to be able to double click on file/line references in the debug output pane of the application, and be taken into visual studio, where the file would open at the appropriate line (much like double clicking on errors and warnings in visual studio itself).

ShellExecuteEx or DDE can be used to open the file, but the only way I could find to go to the line is to resort to COM: get an IApplication pointer, get the active document, get the text selection in the active document, then goto the line. This works fine, but whenever I get the IApplication pointer, using CoCreateInstance, a new visual studio fires up, even if there's one already available.

I have two questions:
1) Is there an easier way to do this?
2) If there isn't, how can I stop CoCreateInstance from creating new visual studios every time?

Many thanks in advance...
Andy.
GeneralRe: IApplication woes Pin
AndyP12-Oct-03 5:16
AndyP12-Oct-03 5:16 
GeneralAn Outlook plug-in issue Pin
dorutzu1-Oct-03 8:04
dorutzu1-Oct-03 8:04 
GeneralRe: An Outlook plug-in issue Pin
Mike Dimmick1-Oct-03 12:36
Mike Dimmick1-Oct-03 12:36 
GeneralRe: An Outlook plug-in issue Pin
dorutzu9-Oct-03 14:09
dorutzu9-Oct-03 14:09 
GeneralThread Pin
Anthony98871-Oct-03 3:55
Anthony98871-Oct-03 3:55 
GeneralRe: Thread Pin
billdwilson31-Oct-03 9:44
billdwilson31-Oct-03 9:44 
GeneralCOM-Marshaling-IUnknown as method param Pin
ceno1-Oct-03 3:29
ceno1-Oct-03 3:29 
GeneralAcrobat Distiller OLE/COM Automation Pin
HooK.NET1-Oct-03 1:49
HooK.NET1-Oct-03 1:49 
GeneralRe: Acrobat Distiller OLE/COM Automation Pin
Steve S1-Oct-03 3:12
Steve S1-Oct-03 3:12 
GeneralRe: Acrobat Distiller OLE/COM Automation Pin
HooK.NET1-Oct-03 3:29
HooK.NET1-Oct-03 3:29 
Generaltyplib marshalling or custom marshalling Pin
umarcool29-Sep-03 4:29
umarcool29-Sep-03 4:29 
QuestionHow to add a new protocol for Internet explorer? Pin
Robert Mao28-Sep-03 5:17
Robert Mao28-Sep-03 5:17 
AnswerRe: How to add a new protocol for Internet explorer? Pin
Tomas Petricek28-Sep-03 10:51
Tomas Petricek28-Sep-03 10:51 
GeneralQuestion about Com Process Pin
FeedFood27-Sep-03 0:01
sussFeedFood27-Sep-03 0:01 
GeneralRe: Question about Com Process Pin
umarcool29-Sep-03 19:14
umarcool29-Sep-03 19:14 
Generalunhandle exception using CreateDispatch Pin
danielferre26-Sep-03 2:04
danielferre26-Sep-03 2:04 
GeneralRe: unhandle exception using CreateDispatch Pin
Steve S26-Sep-03 4:34
Steve S26-Sep-03 4:34 

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.