Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 2 odgovora
  • 6.918 pregleda

Najnovija ↓

Registrovanje komponenata iz VB koda 02.12.2003. u 09:33 · pre 278 meseci #1
Koji je najbolji nacin za registrovanje dll, ocx ili exe komponente iz VB koda?
Pozivanjem regsvr32 ili nekako drugacije?
Re: Registrovanje komponenata iz VB koda 04.12.2003. u 13:09 · pre 278 meseci #3
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.
Potpis
Blue Man Group
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme