it says
any ideas? thanks in advance.Quote:
LoadLibrary("myControl.ocx") failed. GetLastError returns 0x00000485.
Printable View
it says
any ideas? thanks in advance.Quote:
LoadLibrary("myControl.ocx") failed. GetLastError returns 0x00000485.
Probably doesn't exist. Try stating the whole ocx's file path.
Or try unregistering it through api:
Code:Private Declare Function DllUnregisterServer Lib "myControl.ocx" () As Long
Const ERROR_SUCCESS = &H0
Private Sub Form_Load()
If DllUnregisterServer = ERROR_SUCCESS Then
MsgBox "UnRegistration Successful"
Else
MsgBox "UnRegistration Unsuccessful"
End If
End Sub
ok, follow up question.
i use that .ocx control on a webpage, but the problem is that other pc's can't see the control, or sometimes their pc's lock up.
i already recompiled my .ocx control and changed the minor version, cause someone suggested that i do that. but i don't think it helped.
there's code in the control that'll register it. so do i have to unregister it first, then register it again so the control can be seen in other people's pc's?
You can register it over and over again, it will not affect it at all.
so you're saying that that's not the problem as to why the control won't pull up in other pc's?
Perhaps, Regsvr32.exe may not be on the other people's computers. So you may want to include that with your program and just FileCopy it to the C:\Windows\System directory and then Shell your program to register the controls.
so, you developed an activex control and want to run it on a webbrowser via internet?
if that's the case, you should use p&d wizzard to produce a webpackage and place the resulting CAB file on your webserver. then the download and registration of your OCX should be handeled for you (no need to include registration code in your OCX).
good luck
Sascha
It's shipped with Windows, hence everyone should have it (unless they delete it).Quote:
Originally posted by Matthew Gates
Perhaps, Regsvr32.exe may not be on the other people's computers
okay, so here's the problem. i did use PDW, and still the .ocx won't show up in other pc's..they sort of hang. i don't know if the installation takes more than 5 minutes, but when i Ctrl-Alt-Del, i have the (Not Responding) message beside my browser.
what could be wrong with it, then?