I'm writing a library which is to be dynamically loaded in C++.
I'd like to read argc and argv (for debugging reasons) from within my code, however I do not have access to the main function. Is there any way to retrieve the command line (both Windows and Linux solution would be nice).
Thanks, Dan