
ATL Service instantiating a VB com object
Hi, thanks for the info, i am looking into it. Initially I don't think that
it will work, because although I know the methods of the dll I don't know
the name. This dll will be called something different for each instance, i
need to instantiate it based on the prog id. Aren't there other commands
that let me instantiate activex dll's just based on the prog id.
jc
Quote:
> > What code samples are there. Or just what should i search msdn for in
> order
> > to find out how to do it. I just need to instantiate the activex dll
then
> > call one function and get back a long value.
> > thanks
> > jc
> Use #import directive on your dll path i.e
> #import "mydll.dll"
> then you can use the compiler generated class wrappers to instantiate your
> object and make the call i.e.
> mydllnamespace::myobjectPtr p(__uuidof(mydllnamespace::myobject));
> long l = p->mymethod(...);
> Check out the docs on #import, there are a number of complier options you
> shuold be aware of;