|
|
|
date: Fri, 14 Apr 2006 10:53:12 -0700,
group: microsoft.public.platformsdk.com_ole
back
Re: Invoke an ActiveX DLL without registering it?
I'm pretty shy on C++ and I guess I'm looking for a more abstract
methodology. It would be nice if there existed a DLL out there that I could
call in script ..
Dim inv, obj
Set inv = CreateObject("SomeAXInvocator.Invocator")
Set obj = inv.CreateObjectFromFile("C:\My\Unregistered.dll", "ClassName")
Does nothing like that exist? I mean, if not, but it's doable to do it in
C++, how hard would it be to produce the above implementation and share it
with the world? If I have to do it with C++ then I'll do just that but I'd
really rather not spend time on reinventing COM exposition like that. I'm
much too busy, I have business objects to consume. Burrp.. :) :)
Jon
"Igor Tandetnik" wrote in message
news:%23IKR4w$XGHA.4248@TK2MSFTNGP05.phx.gbl...
> Jon Davis wrote:
>> Is late binding supported with this method?
>
> Sure. Late binding just means calling through IDispatch. This method does
> not care what interface you obtain on the newly created object, be it
> IDispatch or otherwise.
> --
> 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
>
>
date: Sat, 15 Apr 2006 14:10:51 -0700
author: Jon Davis
Re: Invoke an ActiveX DLL without registering it?
Easy is relative. The one and only time I worked with C/C++ was updating a
JNI DLL to expose ActiveX to a Java class. It was already built, though, and
I had a mentor to assist me. That was some five or so years ago.
I am up for the challenge, but I don't see this as "easy" at all. :)
Jon
"Igor Tandetnik" wrote in message
news:%23$xjaYYYGHA.1192@TK2MSFTNGP04.phx.gbl...
> "Jon Davis" wrote in message
> news:eR6VUENYGHA.2376@TK2MSFTNGP03.phx.gbl
>> I'm pretty shy on C++ and I guess I'm looking for a more abstract
>> methodology. It would be nice if there existed a DLL out there that I
>> could call in script ..
>>
>> Dim inv, obj
>> Set inv = CreateObject("SomeAXInvocator.Invocator")
>> Set obj = inv.CreateObjectFromFile("C:\My\Unregistered.dll",
>> "ClassName")
>> Does nothing like that exist?
>
> Not as far as I know, but it should be pretty easy to write one using the
> information you have received in this thread.
>
> Note that such an object would be very insecure - you should never mark it
> safe for scripting, only trusted scripts should have access to it.
> --
> 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
>
>
date: Sun, 16 Apr 2006 23:57:01 -0700
author: Jon Davis
|
|