Mozes ovako nesto da koristis
Code:
Declare Function DllRegisterServer Lib "ComCtl32.OCX" () As Long
Declare Function DllUnregisterServer Lib "ComCtl32.OCX" () As Long
Const ERROR_SUCCESS = &H0
' To register your OCX use this function:
If DllRegisterServer = ERROR_SUCCESS Then
MsgBox "Registration Successful"
Else
MsgBox "Registration Unsuccessful"
End If
' To unregister your OCX use this function:
If DllUnregisterServer = ERROR_SUCCESS Then
MsgBox "UnRegistration Successful"
Else
MsgBox "UnRegistration Unsuccessful"
End If
Svaki ActiveX DLL ili kontrola ima DllRegisterServer i DllUnregisterServer metode. Na ovaj nacin i regsvr32 radi. Ako probas da registrujes API DLL sa regsvr32 dobijes ovako nesto:
Filename was loaded, but the
DllRegisterServer entry point was not found.