|
-
Aug 24th, 2000, 01:37 PM
#1
Thread Starter
Frenzied Member
I goto RUN then I type what????? I forgot please help
thanks in adavnace
NXSupport - Your one-stop source for computer help
-
Aug 24th, 2000, 01:39 PM
#2
Monday Morning Lunatic
...to register.
Code:
regsvr32 /u mydll.dll
...to unregister.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 24th, 2000, 01:40 PM
#3
Thread Starter
Frenzied Member
NXSupport - Your one-stop source for computer help
-
Aug 24th, 2000, 02:20 PM
#4
Fanatic Member
Can you register OCX's the same way?
-
Aug 24th, 2000, 02:22 PM
#5
Thread Starter
Frenzied Member
yea, and once megatron suggested using:
regsvr32 "c:\my ocxs\a.ocx"
becuase then you can have spaces in it
NXSupport - Your one-stop source for computer help
-
Aug 24th, 2000, 02:26 PM
#6
Monday Morning Lunatic
You can also do it from inside your program, by calling the DllRegisterServer and DllUnregisterServer functions which are exported from all OCX files. (An OCX is a DLL with a different extension).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 24th, 2000, 04:36 PM
#7
An example of what parksie is talking about is this:
Code:
'This will register or unregister a dll/ocx
Option Explicit
Private Declare Function DllRegisterServer Lib "MyDll.Dll" () As Long
Private Declare Function DllUnregisterServer Lib "MyDll.Dll" () As Long
Const ERROR_SUCCESS = &H0
If DllRegisterServer = ERROR_SUCCESS Then
MsgBox "Registration Successful"
Else
MsgBox "Registration Unsuccessful"
End If
If DllUnregisterServer = ERROR_SUCCESS Then
MsgBox "UnRegistration Successful"
Else
MsgBox "UnRegistration Unsuccessful"
End If
-
Aug 24th, 2000, 05:34 PM
#8
Or use the Shell method.
Code:
Shell "Regsvr32.exe mydll.dll"
-
Aug 25th, 2000, 07:49 AM
#9
Fanatic Member
Is there a way to verify that the OCX was or was not registered before you run the code below?
Originally posted by Matthew Gates
Code:
'This will register or unregister a dll/ocx
Option Explicit
Private Declare Function DllRegisterServer Lib "MyDll.Dll" () As Long
Private Declare Function DllUnregisterServer Lib "MyDll.Dll" () As Long
Const ERROR_SUCCESS = &H0
If DllRegisterServer = ERROR_SUCCESS Then
MsgBox "Registration Successful"
Else
MsgBox "Registration Unsuccessful"
End If
If DllUnregisterServer = ERROR_SUCCESS Then
MsgBox "UnRegistration Successful"
Else
MsgBox "UnRegistration Unsuccessful"
End If
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
|