delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/10/26/06:35:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Tue, 26 Oct 1999 03:34:36 -0700 (PDT)
From: Danny Sinclair <uf657 AT victoria DOT tc DOT ca>
X-Sender: uf657 AT vtn1
To: cygwin AT sourceware DOT cygnus DOT com
Subject: mingw32 DLL getting main args?
Message-ID: <Pine.GSO.3.95.iB1.0.991026033214.1821A-100000@vtn1>
MIME-Version: 1.0

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?

Daniel


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019