Jump to content

How create object for dll?


ancp
 Share

Recommended Posts

Hi, one question for experts... I have registered this dll (with regsvr32):

c:\windows\system32\CarsLib.dll

In the script i create object as ActiveX. It's works:

..
$oDogLib = ObjCreate("CarsLib.EngineKit")
$oDogLib.Type = "DM"
..

But, I need distribute app with this dll without register on the target OS. My idea is place dll to same folder as my script. How call CarsLib.dll ad create object "CarsLib.EngineKit" without registered dll on the user system? Sorry for my very bad English.

Thanks for help

Link to comment
Share on other sites

I would like to know why you can't register it if it's shipped with the app?

You could FileInstall the file, then run regsvr32.exe to register it automatically, because I don't belive it's possible to use the object without registering it first. :/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...