Click to See Complete Forum and Search --> : [COM] How can I import an Interface?


Mr. S
July 24th, 2004, 07:19 PM
Hi!

I would like to create a COM-Object with VC++.NET2003. I need a few functions which are dealing with an other COM-Objekt (HImageX). I found a description to declare such a function:
[id(7), helpstring("method Test")] HRESULT Test([out,retval] IHImageX** img);
How can I import the IHImageX-interface from its lib? Or has someone a better idea? I have to create a HImageX object for examle in vb and give this to my object to edit it, because C++ is much faster than vb.

THX
Mr. S