Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!newshost.marcam.com!zip.eecs.umich.edu!umn.edu!news
From: "ofx" <ofx@maroon.tc.umn.edu>
Subject: Re: Misc VW questions
To: POsborn@ix.netcom.com
Message-ID: <17407.ofx@maroon.tc.umn.edu>
X-Minuet-Version: Minuet1.0_Beta_8
Sender: news@news.cis.umn.edu (Usenet News Administration)
Nntp-Posting-Host: dialup-4-60.gw.umn.edu
X-Popmail-Charset: English
Organization: University of Minnesota, Twin Cities
Date: Fri, 23 Dec 1994 17:38:41 GMT
Lines: 27

On 21 Dec 1994 17:31:07 GMT, Paul Osborn wrote:

>I'm reposting these questions as I didn't find any answers.
>
>>
>>I have 2 questions regarding VisualWorks 2.0 on MS-Windows 3.1
>>(although the questions should be platform independent).
>>
>>1)  How can I execute an OS file from VW2.0?
>>
>>2)  I want to put up a modal box, but I don't want the system to hang 
>>as it does when I use a SimpleDialog box w/an "OK" button.
>>
>>Thanks in advance 
>>


If question 1 is how can I start an MS Windows executable from VW, here is 
the answer:
1. Use CPOK (or C connect) to create an external interface subclass. This 
class will reference the necessary dlls (I think it is user.dll and krn386.
dll on Windows).
2. Add the WinExec method to your external interface class. This method 
would call the WinExec api function provided by windows. If you have not 
used CPOK before, give ParcPlace a call (or write to me) for details.

Raju Chithambaram
