-
Nov 12th, 2000, 08:08 PM
#1
Thread Starter
Lively Member
please can anyone tell me how to register a dll file???
-
Nov 12th, 2000, 08:21 PM
#2
Fanatic Member
Select Run from the start menu and type this in:
regsvr mydll.dll
or if you need it from VB
Code:
Shell("regsvr32 mydll.dll")
Gl,
D!m
[Edited by Dim on 11-12-2000 at 08:26 PM]
-
Nov 12th, 2000, 09:47 PM
#3
Lively Member
So you dont get the dialog box popping up
Code:
Shell("regsvr32 /s mydll.dll")
-
Nov 13th, 2000, 07:29 AM
#4
You could also use the DllRegisterServer and DllUnregisterServer api functions to register and unregister the dlls/ocxs.
Code:
Option Explicit
'MyDll.Dll is the dll/ocx that you want to register
Private Declare Function DllRegisterServer Lib "MyDll.Dll" () As Long
Private Declare Function DllUnregisterServer Lib "MyDll.Dll" () As Long
Const ERROR_SUCCESS = &H0
Private Sub Command1_Click()
'Register
If DllRegisterServer = ERROR_SUCCESS Then
MsgBox "Registration Successful"
Else
MsgBox "Registration Unsuccessful"
End If
End Sub
Private Sub Command2_Click()
'UnRegister
If DllUnregisterServer = ERROR_SUCCESS Then
MsgBox "UnRegistration Successful"
Else
MsgBox "UnRegistration Unsuccessful"
End If
End Sub
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
|