Click here to Skip to main content
16,004,806 members
Home / Discussions / COM
   

COM

 
GeneralLocal Machine Software Firewall (Windows) Pin
entr0py_29-Oct-03 12:30
entr0py_29-Oct-03 12:30 
GeneralRe: Local Machine Software Firewall (Windows) Pin
Niels Penneman12-Jan-04 10:30
Niels Penneman12-Jan-04 10:30 
GeneralIStorage, IStream and folder copying to Clipboard Pin
Nathan_RR28-Oct-03 1:33
Nathan_RR28-Oct-03 1:33 
GeneralHTMLDocumentEvents2 Pin
JDasari27-Oct-03 12:25
JDasari27-Oct-03 12:25 
GeneralRe: HTMLDocumentEvents2 Pin
Heath Stewart28-Oct-03 16:53
protectorHeath Stewart28-Oct-03 16:53 
GeneralRe: HTMLDocumentEvents2 Pin
JDasari30-Oct-03 11:11
JDasari30-Oct-03 11:11 
QuestionHow to Create my Automation Object Pin
Sara Burns22-Oct-03 21:51
Sara Burns22-Oct-03 21:51 
AnswerRe: How to Create my Automation Object Pin
Heath Stewart27-Oct-03 3:03
protectorHeath Stewart27-Oct-03 3:03 
Checking that box mostly just includes the right headers. The MFC class wizard does have things to help you add automation support to classes (I think it is the "Automation" tab, but it's been a while since I've used any MFC).

As far as starting an application, it is usuall in the form of "ProductName.Application", like new Word.Application or CreateObject("Word.Application"). This finds the ProgID in the registry which finds (perhaps first, a version-dependent ProgID) a CLSID which is used to start the server (either out-of-proc, or in-proc and optionally remote, if supported). The exe is started in these cases.

Word, Excel, and other Office buddies are entirely different beasts from MFC apps. While similar in apparent concept, they are definitely not. They're automation servers will automatically open a new or existing document. To do the same, you're going to have to make sure that when your applicaiton is launched for automation (takes the automatically defined /automation command-line parameter) you'll have to take your application through the steps.

I know this is very specific, but it wasn't a very specific question. Smile | :) This is roughly the process that is followed and I hope I could give you some pointers about how to complete automation in your application (i.e., it isn't done completely for free).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
QuestionHow can I manipulate BSTR typed string in ATL3COM? Pin
Atif Bashir22-Oct-03 5:02
Atif Bashir22-Oct-03 5:02 
AnswerRe: How can I manipulate BSTR typed string in ATL3COM? Pin
Steve S22-Oct-03 5:55
Steve S22-Oct-03 5:55 
AnswerRe: How can I manipulate BSTR typed string in ATL3COM? Pin
lxwde9-Nov-03 14:45
lxwde9-Nov-03 14:45 
GeneralSMTP Server Extension (Mail Sink) performance Pin
Paul Ingles21-Oct-03 5:10
Paul Ingles21-Oct-03 5:10 
GeneralC# AsyncCallBack and COM+ Pin
rick close20-Oct-03 8:10
rick close20-Oct-03 8:10 
GeneralService, IHTMLDocument2, print Pin
User 64185520-Oct-03 3:50
User 64185520-Oct-03 3:50 
General2D arrays in ATL 7 Pin
Urban Olars20-Oct-03 1:13
Urban Olars20-Oct-03 1:13 
GeneralRe: 2D arrays in ATL 7 Pin
Giles6-Nov-03 1:06
Giles6-Nov-03 1:06 
GeneralControl of ActiveX objects opened in IE Pin
Ed0119-Oct-03 23:50
Ed0119-Oct-03 23:50 
GeneralNotifying Multiple Instances of Changes to One Pin
Heath Stewart16-Oct-03 14:23
protectorHeath Stewart16-Oct-03 14:23 
GeneralWin32 DLL wrapped into COM object Pin
RedZenBird16-Oct-03 11:25
RedZenBird16-Oct-03 11:25 
GeneralRe: Win32 DLL wrapped into COM object Pin
Mike Pulice11-Nov-03 8:25
Mike Pulice11-Nov-03 8:25 
GeneralIHTMLWindow2::open() related question Pin
16-Oct-03 6:58
suss16-Oct-03 6:58 
GeneralRe: IHTMLWindow2::open() related question Pin
Heath Stewart17-Oct-03 9:35
protectorHeath Stewart17-Oct-03 9:35 
GeneralHashtable Pin
Jajco15-Oct-03 4:41
Jajco15-Oct-03 4:41 
QuestionGUID is undefined ??? Pin
Saurabh_Delhi15-Oct-03 4:11
Saurabh_Delhi15-Oct-03 4:11 
AnswerRe: GUID is undefined ??? Pin
Saurabh_Delhi15-Oct-03 19:46
Saurabh_Delhi15-Oct-03 19:46 

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.