News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Connecting com interface

Started by ToutEnMasm, February 19, 2009, 09:37:35 PM

Previous topic - Next topic

baltoro

ToutEnMasm,   
I stumbled upon several items that might be of interest.   
Here is a Larry Osterman blog that explains COM activation, and in particular, the CLSCTX flags. http://blogs.msdn.com/larryosterman/archive/2004/10/12/241420.aspx. This blog entry also has information on COM threading models: http://blogs.msdn.com/larryosterman/archive/2004/04/28/122240.aspx. You'll notice that in my original explanation of threading models and the proxy-stub architecture, I was in error about your STA thread the the ThreadingModel=Both key value in the registry.
Also, there is an old two part series in MSJ (Microsoft Systems Journal, 1999) called the Universal Delegator, by Keith Brown: January http://www.microsoft.com/msj/0199/intercept/intercept.aspx, and,
Febuary http://www.microsoft.com/msj/0299/intercept2/intercept2.aspx. Download the Delegator code: http://download.microsoft.com/download/0/6/7/0678184e-905e-4783-9511-d4dca1f492b4/delegate2.exe
Baltoro

ToutEnMasm


Not very easy to find what can be done with the delegator.
The source code is a dll and the sample of use a ... dll.
Not very clear for me.
I have see that some hook can be made and interceptions (of what ?) can be made.
seems to replace the Ifactory
Quote
The delegator has a custom class object that implements this interface (instead of the more common IClassFactory). This allows you to provide initialization data during construction
Like that seems to be the starting point of ATL ??.




ToutEnMasm


Trying to see what others langage do , ihave found this.
http://www.csharphelp.com/archives/archive160.html

Can masm do a little like that ?