I have the following code snippet that will programmatically register/ unregister ComCtl32.ocx.....

Public Declare Function RegComCtl32 Lib "ComCtl32.OCX" _
Alias "DllRegisterServer" () As Long

Public Declare Function UnRegComCtl32 Lib "ComCtl32.OCX" _
Alias "DllUnregisterServer" () As Long

Is there anyway to register components at runtime without hardcoding their names???
(Parse a directory, put filenames into an array, pass them to a Function to Register/unregister them???)

Please help, thanks.