comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Can a CALL_EXTERNAL .dll create a window?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Can a CALL_EXTERNAL .dll create a window? [message #36365 is a reply to message #36303] Wed, 03 September 2003 11:02 Go to previous message
Matt Feinstein is currently offline  Matt Feinstein
Messages: 33
Registered: July 2002
Member
On Fri, 29 Aug 2003 11:37:00 -0400, Matt Feinstein <nospam@here.com>
wrote:

> Hi all--
>

... was trying to create a Win32 window in a CALL_EXTERNAL .dll, but
seemed to be getting nowhere...

> Matt Feinstein

Since I asked the question, I guess I should now answer it.

Yes, you can create a Win32 window in a CALL_EXTERNAL .dll, complete
with a window class and a runty WinProc to handle WM_CREATE and
WM_DESTROY events that are generated when you create and destroy the
window. In places in the Win32 hocus-pocus where I needed an instance,
I used GetModuleHandle(NULL). I'd say, FWIW, that it's a testament to
IDL's stability that one can get away with this sort of thing...

And, the 'crash' that I was getting initially was due to how I was
treating the WM_DESTROY event-- I called PostQuitMessage(0)-- which,
correctly, forced IDL to quit.

D'oh.

And, not only that, but the .dll does the desired hardware-accelerated
off-screen rendering!

Matt Feinstein

--
There is no virtue in believing something that can be proved to be true.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unexpected rebin behavior
Next Topic: matchup of Map_set & contour

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Nov 30 05:52:14 PST 2025

Total time taken to generate the page: 1.77409 seconds