Jump to content

gimagex_com.dll + WinPE, cannot create object


Go to solution Solved by doestergaard,

Recommended Posts

Im not sure what I'm doing wrong here. I use regsvr32.exe to register the gimagex_com.dll file and it doesn't work, cause when I'm trying to create the gimagex.ctrl object it fails. Can you use it with WinPE at all?

Here is my code:

runwait("regsvr32.exe" & " x:\program files\osd\gimagex_com.dll" & " /s")
if @error then msgbox(0x10, "OSDGUI", "Unable to launch process: 'regsvr32.exe gimagex_com.dll'", 0, $osdgui)

The above doesn't send back any error, so it's being registered.

When I try to create the COM object is fails:

global $wim_object = objcreate("GImageX.GImageXCtrl")
if not isobj($wim_object) then msgbox(0x10, "OSDGUI", "Unable to load COM object", 0, $osdgui)

I get the msgbox displaying the error

 

I'm pretty sure that the code is right, any suggestions?

Thanks in advance

Edited by doestergaard
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...