Archive: how to register an OCX?


how to register an OCX?
I have tried with:
Execshell '"$WINDIR\OCX\vbalGrid6.ocx" /regserver'
Exec '"$WINDIR\OCX\vbalGrid6.ocx" /regserver'
Exec '"$WINDIR\OCX\vbalGrid6.ocx" /regsvr32.exe'

what I'm doing wrong?


mmm...

Did you try RegDLL?


RegDLL "$WINDIR\OCX\vbalGrid6.ocx"


Re: how to register an OCX?

Originally posted by Martin_caceres
I have tried with:
Execshell '"$WINDIR\OCX\vbalGrid6.ocx" /regserver'
Exec '"$WINDIR\OCX\vbalGrid6.ocx" /regserver'
Exec '"$WINDIR\OCX\vbalGrid6.ocx" /regsvr32.exe'

what I'm doing wrong?
OCXes couldn`t be executed directly, because of they are just kind of DLLs.
So if you use Exec function, type 'regsvr32.exe "$WINDIR\OCX\vbalGrid6.ocx"'.

Regsvr32 is not always installed, use RegDLL.


thanks!
I tried with RegDLL and it's working now (I thought RegDll was only for dll's!!!).