delorie.com/archives/browse.cgi | search |
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 |
Message-ID: | <37F42EDE.D5C706E2@advancel.com> |
Date: | Fri, 01 Oct 1999 03:47:42 +0000 |
From: | stanley AT advancel DOT com |
X-Mailer: | Mozilla 4.6 [en] (X11; I; Linux 2.0.36 i586) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Windows messages from within (cygwin-created) DLL |
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 AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |