NetExpress and COM+ - Implement an interface

From: Douglas Gallant (no_at_spam.net)
Date: 04/30/04


Date: Fri, 30 Apr 2004 02:45:03 GMT

I'm using NetExpress 4 and need to create a COM+ component. The class wizard
and the MTS demo project are very helpful. However, I am having difficulty
trying to find the syntax that will allow me to implement a COM interface
that is defined in another dll. The only syntax I find in the help files
regarding interfaces doesn't seem to match-up with the syntax in the
generated class. I am assuming it is a dialect difference (2002 standard v.
MF?).

Further details in case it matters - I am using a third-party tool that
defines the COM interface I need and it stuffs the typelib into a .dll. That
dll may also contain some other data that the tool I'm using requires (not
sure about that) but there is no executable code AFAIK. The COM+ component I
need to create needs to implement the interface defined in that dll. I've
done this easily using VB6 and, with a bit more effort, VB.NET. Basically
just set a reference to the dll and add the Implements keyword on the class
definition. I'm hoping there is something straightforward in NX that I just
haven't found yet.

Thanks for any direction you can provide.

Douglas Gallant



Relevant Pages

  • Re: Properties Shared Amongst Objects
    ... The host can query my application for certain ... In that context one usually strives to provide a subsystem interface that reflects the invariants of the DLL subject matter. ... A some point the conversion may become so complex that one wants to deal with it explicitly within the DLL subject matter. ...
    (comp.object)
  • Re: Explicit Linking of DLLs in VB.net
    ... yes this technique will only work on managed assemblys (exe or dll) ... "YourObject" is a form and is limited to the form methods. ... Wel implement propertys, methods, events in your interface and start ... Public Shared Function LoadMeByName(ByVal vstrAssemblyName As String, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Explicit Linking of DLLs in VB.net (attn Michel or any others)
    ... loads the dll and finds a form in the dll. ... Dim extForm As Form = extAssembly.CreateInstance("test.entry", ... Wel implement propertys, methods, events in your interface and start ... Public Shared Function LoadMeByName(ByVal vstrAssemblyName As String, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Problem marshalling interface pointer into local server
    ... It can be applied to the proxy/stub DLL as well. ... Mind you this is not the most efficient way of producing a DLL ... Now that would be correct - an Automation-compatible interface ... I had an issue where I have a in-proc server (server ...
    (microsoft.public.vc.atl)
  • Re: Implements Interface difference in VB IDE and Compiled version, is this a BUG!???
    ... You need to set binary compatibility to the compiled dll. ... > it seams that VB in IDE Runtime mode with ActiveX component doesn't ... > |> TLB file contains interface IWPSpecific, ...
    (microsoft.public.vb.general.discussion)