Re: Console application to become COM server?
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 11/22/04
- Previous message: Igor Tandetnik: "Re: Responding to VB6 DoEvents in ATL"
- In reply to: apocalypznow: "Re: Console application to become COM server?"
- Next in thread: Alexander Nickolov: "Re: Console application to become COM server?"
- Reply: Alexander Nickolov: "Re: Console application to become COM server?"
- Reply: apocalypznow: "Re: Console application to become COM server?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 22 Nov 2004 14:45:00 -0500
"apocalypznow" <apocalypznow@gmail.com> wrote in message
news:%23pTH3LM0EHA.1524@TK2MSFTNGP09.phx.gbl
> No kidding. Short of having to hand code repetitive boiler plate
> code, what would you recommend a quick way to go about it? Should I
> take the wizard's generated ATL server code and merge it into the
> console app? If so, what things ought I to be careful of? Is there
> another viable method?
I'd use the Wizard to generate a skeleton in a separate project, then
port my exising code. It is unlikely that you can just tack a few
modifications and turn your console app into a COM server. The two
usually have different lifecycles: the console application starts, does
its job, and terminates; the server starts, waits for the client to call
it, does what the client asks, waits again, works again, ... In other
words, console apps tend to be procedural, servers are event-driven.
This often affects major design decisions.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
- Previous message: Igor Tandetnik: "Re: Responding to VB6 DoEvents in ATL"
- In reply to: apocalypznow: "Re: Console application to become COM server?"
- Next in thread: Alexander Nickolov: "Re: Console application to become COM server?"
- Reply: Alexander Nickolov: "Re: Console application to become COM server?"
- Reply: apocalypznow: "Re: Console application to become COM server?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|