
Get the Command$ value from inside an ActiveX DLL
At times you may need to access the command line passed to the application from within an ActiveX DLL. Unfortunately, when inside a DLL the Command$ function returns a null string, so you have to resort to some API trickery: Private Declare Function GetCommandLine Lib “kernel32” Alias “GetCommandLineA” _ ()