Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 AT sourceware DOT cygnus DOT com