delorie.com/archives/browse.cgi | search |
Danny Sinclair <uf657 AT victoria DOT tc DOT ca> writes: > Why does a DLL, made with Mumit's mingw32 2.95 release, need to call > msvcrt.dll's __getmainargs? > > When the DLLMainCRTStartup function receives DLL_PROCESS_ATTACH it calls > _mingw32_init_mainargs, which then calls __getmainargs. I don't want my > DLL to be dynamicly linked to msvcrt.dll, but it is because of this. Why > does a DLL need to parse the command line? > Good point. I don't know why it's done that way (it was there when I first used it). MSVC does not seem to do this, but DLLs created with MSVC are linked dynamically to MSVCRT.DLL (if you have /MD). I'll do some checking, and remove the getmainargs if it's not needed. Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |