These libraries usually have the file extension DLL , OCX ( for libraries containing ActiveX controls ) , or DRV ( for windows legacy system drivers ) . These libraries usually have the file extension DLL , OCX ( for libraries containing ActiveX controls ) , or DRV ( for legacy system drivers ) .