doestergaard Posted May 10, 2014 Share Posted May 10, 2014 (edited) 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 May 10, 2014 by doestergaard Link to comment Share on other sites More sharing options...
Solution doestergaard Posted May 11, 2014 Author Solution Share Posted May 11, 2014 OK, i found out why. gimagex_com.dll needs to be in system32 folder Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now