[ nessa @ 02.12.2003. 08:33 ] @
Koji je najbolji nacin za registrovanje dll, ocx ili exe komponente iz VB koda?
Pozivanjem regsvr32 ili nekako drugacije?
[ Hallman @ 02.12.2003. 20:50 ] @
Pa lepo, sa Shell-om pozovi regsvr32 /s fajl.dll, i to je to, u jednoj liniji koda mozes da registrujes bilo sta, imas i na vb cd-u jos laksih programa i metoda...
[ mladenovicz @ 04.12.2003. 12:09 ] @
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.