Re: another COM-Question: how to inject a type-lib into a dll?



"Axel Bock" <axel.bock.news@xxxxxxxxxxxxxx> wrote in message
news:1138086808.123829.151490@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> A major problem was that the IDL file was
> compile-time-generated by the Visual Studio, and I didn't know where
> to tell it that I have done some custom things it should consider.

What do you mean, compile time generated? Are you building an attributed
project by any chance? I stay away as far as possible from those, so I
don't know much about them (beyond the fact that they are more trouble
than they are worth).

> But another problem: A friend of mine asked me these days how he could
> pass an object into a COM method.

Define "object". You can pass a COM interface to a COM method, which
interface is of course implemented by a COM object. In this sense, it
can be said that an object is being passed to the method. Something
tells me this is not what your friend had in mind though.
--
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


.



Relevant Pages

  • Re: creaping coupling......
    ... but it is a more strict contract than required. ... "I am capable of implementing things via interface XYZ i.e. ... consider specifically that we compile, deploy and then we delete a method to ... IWriteable pipe = new Pipe; ...
    (comp.object)
  • Re: ActiveX.exe question
    ... > the public interface still need registered in order to use them. ... Compile AXExe.exe against a Share on the TestPC ... Open a Standard-Exe-Project on your DevelopPC and name it AXTest ... Compile AXTest.exe against the Share on the TestPC ...
    (microsoft.public.vb.general.discussion)
  • Re: RAD vs. performance
    ... thus they fulfull the number interface and can be used interchangeably. ... I'm not about to ditch statically typed languages ... Because you need whole-program optimisation for a start. ... The benefits of static typing come at compile time. ...
    (comp.lang.misc)
  • Re: Is Direct3D a rip-off of OpenGL?
    ... People who think that a method change in a NEW INTERFACE in DirectX really ... Moving to use a NEW INTERFACE, ... > ago simply isn't going to compile with the latest SDK, ...
    (comp.graphics.api.opengl)
  • Re: Duplicate definition on Interface declaration
    ... Interface class. ... Init() method perhaps? ... There are no conditional compile arguments named "Init". ... definition error when I try to display some forms and/or controls in the IDE ...
    (microsoft.public.vb.general.discussion)