Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Fri, 14 Apr 2006 10:53:12 -0700,    group: microsoft.public.platformsdk.com_ole        back       


Invoke an ActiveX DLL without registering it?   
I would like to invoke members of a local ActiveX DLL given its physical 
file path rather than using its CLSID. I don't want to register it at all (I 
have reasons, let's not discuss that).

What's the easiest way to pull this off?

Jon
date: Fri, 14 Apr 2006 10:53:12 -0700   author:   Jon Davis

Re: Invoke an ActiveX DLL without registering it?   
Jon Davis  wrote:
> I would like to invoke members of a local ActiveX DLL given its
> physical file path rather than using its CLSID. I don't want to
> register it at all (I have reasons, let's not discuss that).

http://groups.google.com/group/microsoft.public.vc.atl/browse_frm/thread/981c9c41fe1a3cd8
-- 
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: Fri, 14 Apr 2006 14:40:56 -0400   author:   Igor Tandetnik

Re: Invoke an ActiveX DLL without registering it?   
Thanks.

"Igor Tandetnik"  wrote in message 
news:u$K69L$XGHA.4248@TK2MSFTNGP05.phx.gbl...
> Jon Davis  wrote:
>> I would like to invoke members of a local ActiveX DLL given its
>> physical file path rather than using its CLSID. I don't want to
>> register it at all (I have reasons, let's not discuss that).
>
> http://groups.google.com/group/microsoft.public.vc.atl/browse_frm/thread/981c9c41fe1a3cd8
> -- 
> 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: Fri, 14 Apr 2006 12:06:12 -0700   author:   Jon Davis

Re: Invoke an ActiveX DLL without registering it?   
Is late binding supported with this method? I was hoping to implement this 
generically, facilitating user-entered script that calls upon it.

Jon


"Igor Tandetnik"  wrote in message 
news:u$K69L$XGHA.4248@TK2MSFTNGP05.phx.gbl...
> Jon Davis  wrote:
>> I would like to invoke members of a local ActiveX DLL given its
>> physical file path rather than using its CLSID. I don't want to
>> register it at all (I have reasons, let's not discuss that).
>
> http://groups.google.com/group/microsoft.public.vc.atl/browse_frm/thread/981c9c41fe1a3cd8
> -- 
> 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: Fri, 14 Apr 2006 12:11:41 -0700   author:   Jon Davis

Re: Invoke an ActiveX DLL without registering it?   
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: Fri, 14 Apr 2006 15:47:03 -0400   author:   Igor Tandetnik

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?   
"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 14:45:57 -0400   author:   Igor Tandetnik

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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us