Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!scramble.lm.com!news.math.psu.edu!chi-news.cic.net!news-w.ans.net!newsfeeds.ans.net!newsjunkie.ans.net!newsfeeds.ans.net!howland.reston.ans.net!ix.netcom.com!netcom.com!billw
From: billw@netcom.com (William Wright)
Subject: Popping a window to the front with ParcPlace/Windows - help
Message-ID: <billwDo9J3J.K0x@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
Date: Thu, 14 Mar 1996 15:02:06 GMT
Lines: 26
Sender: billw@netcom9.netcom.com


I'm running VisualWorks 2.0 on a Windows 3.1 system and am
trying to pop another application to the top from Smalltalk.
I've set up a subclass of ExternalInterface called Win3KernelDll
and imported the functions I need, which are FindWindow() and
ShowWindow().

FindWindow() works fine and returns me a window handle (HWND,
which is defined as being an unsigned integer) which is a
Smalltalk SmallInteger. When I pass this to the ShowWindow()
function, nothing happens. Has anyone ever done such a thing?
What could I be doing wrong. I'm wondering if there is some
problem with the thunking between 32 bits and 16 bits, 
except that the handle returned from the DLL is fine. It
just appears that I can't send a handle to the DLL.

This is very frustrating. Any help would be greatly appreciated.
I can't believe I am the only one who has tried to do this.
I have a call into ParcPlace, but no response yet.

Bill Wright
(303) 494-7232
-- 
Bill Wright	(billw@netcom.com)
Home: (303) 494-7232
Work: (303) 274-3134
