Re: Making an ActiveX control out of an executable



You are most welcome. I should also point you towards
"Inside OLE" by Kraig Brockschmidt. I suspect you might
find it useful...

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Thore Karlsen [MVP DX]" <sid@xxxxxxxx> wrote in message
news:79qgd1t6q5bainpqb9eomhvj55e1b3pp5n@xxxxxxxxxx
> On Tue, 12 Jul 2005 10:49:43 -0700, "Alexander Nickolov"
> <agnickolov@xxxxxxxx> wrote:
>
>>You don't need a separate executable if you implement
>>an ActiveX Document server. The same executable can
>>be coded to execute standalone as well. Check for the
>>/Emebedded command-line switch on startup.
>>
>>If you export functions from your executable to be loaded
>>from another process, it's essentially a DLL with the .EXE
>>extension. Yes, you can code such a strange hybrid.
>
> Ah, so it is maybe possible. That's what I was hoping.
>
>>Note that your object will be more complex as it should deal
>>with the fact you're either in a standalone process or in your
>>client's process. The location of your message pump and
>>message handling differs. I've never attempted anything
>>like that, so can't give you much specific advice...
>
> Yes, obviously I would have to make several changes. Still, that would
> be easier and faster than maintaining two separate projects with
> essentially the same code.
>
> I just got "ATL Internals", so I think I'll read through that and see if
> that can give me some pointers. It's time to try to understand the
> details. Thanks for the pointers.
>
> --
> Be seeing you.


.



Relevant Pages