Chris Davoli
8/21/2007 3:44:00 PM
Thanks Phil.
So what your saying, if I want to just call the com component, just adding a
reference to it in the local project without GAC'ing it, will do it. Is that
true? Sounds pretty easy.
--
Chris Davoli
"Phill W." wrote:
> Chris Davoli wrote:
>
> > I'm trying to just learn how to call a COM component from a .Net application.
>
> At its /most/ simple, add a reference to the COM component; Visual
> Studio will create you an InterOp Assembly (local to your current
> project) that allows you to call the methods on the COM object and wires
> up any necessary data type conversions and the like.
>
> Beyond that, you're looking at the "tlbimp" utility (if you need to put
> /your/ Assemblies into the Global Assembly Cache then you'll need tlbimp
> to "Strongly Name" the generated InterOp Assembly).
>
> And, if you're playing with automating MS Office then you'll need to
> read up on its "Primary InterOp Assemblies".
>
> HTH,
> Phill W.
>