|
-
Oct 16th, 2000, 10:22 AM
#1
it says
LoadLibrary("myControl.ocx") failed. GetLastError returns 0x00000485.
any ideas? thanks in advance.
-
Oct 16th, 2000, 01:57 PM
#2
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
-
Oct 16th, 2000, 02:20 PM
#3
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?
-
Oct 16th, 2000, 02:27 PM
#4
You can register it over and over again, it will not affect it at all.
-
Oct 16th, 2000, 02:31 PM
#5
so you're saying that that's not the problem as to why the control won't pull up in other pc's?
-
Oct 16th, 2000, 02:40 PM
#6
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.
-
Oct 16th, 2000, 02:42 PM
#7
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
-
Oct 16th, 2000, 03:00 PM
#8
Originally posted by Matthew Gates
Perhaps, Regsvr32.exe may not be on the other people's computers
It's shipped with Windows, hence everyone should have it (unless they delete it).
-
Oct 16th, 2000, 04:22 PM
#9
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|