From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18500 invoked by alias); 18 Jun 2008 14:09:38 -0000 Received: (qmail 18489 invoked by uid 22791); 18 Jun 2008 14:09:36 -0000 X-Spam-Check-By: sourceware.org Received: from pioneerwireless.ca (HELO pioneerwireless.ca) (72.172.130.178) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 18 Jun 2008 14:09:15 +0000 Received: (qmail 1871 invoked by uid 48); 18 Jun 2008 10:04:31 -0400 Received: from 24.139.16.66 ([24.139.16.66]) by webmail.pioneerwireless.ca (Horde MIME library) with HTTP; Wed, 18 Jun 2008 10:04:31 -0400 Message-ID: <20080618100431.fxhlogv6sksc88sw@webmail.pioneerwireless.ca> Date: Wed, 18 Jun 2008 14:09:00 -0000 From: "John E. Bossom" To: pthreads-win32@sourceware.org Subject: Re: Static Library Initialization (again?) References: <54b165660806171627i489ec78at85e8576762fe97af@mail.gmail.com> In-Reply-To: <54b165660806171627i489ec78at85e8576762fe97af@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2008/txt/msg00030.txt.bz2 Quoting Brian Cole : > Why can't DllMain be used for this? MSDN seems to imply that DllMain > is called for static libraries > (http://msdn.microsoft.com/en-us/library/ms682583.aspx): > "The lpReserved parameter indicates whether the DLL is being loaded > statically or dynamically." You can statically link against the implib of a DLL or dynamically load the DLL at run time. Regardless a DLL is a DLL is a DLL. That is what they mean in MSDN... DllMain only exists for DLLs not static libraries.