Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <37F42EDE.D5C706E2@advancel.com>
Date: Fri, 01 Oct 1999 03:47:42 +0000
From: stanley@advancel.com
X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.36 i586)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin@sourceware.cygnus.com
Subject: Windows messages from within (cygwin-created) DLL
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,
    i am running into a small problem of trying to do something
that I am not sure it possible.  I have created a DLL using Cygwin,
which gets loaded dynamically (LoadLibrary) by another application
(which was also compiled with cygwin).
The DLL is supposed to create a window and handle certain operations
on it.  Looking through some books, it seems that all Windows
messages will go through application's message loop, and not DLL's
message loop.  There is also a mention of using application's hInstance
to create a window from within DLL.
    So, i guess i have 2 questions:

- how do i extract main program's hInstance from within DLL.
- how do i make my DLL handle the messages to the window (this is
the only window that gets created, so DLL can handle all messages).

  any help in resolving/working around this problem would be appreciated

-- stanley

p.s.  i only have access to the DLL code, not the application that loads
it.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

