Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!udel!gatech!howland.reston.ans.net!spool.mu.edu!news.cs.indiana.edu!umn.edu!news
From: "ofx" <ofx@maroon.tc.umn.edu>
Subject: Re: Can Smalltalk call C?
To: kaul@gmd.de
Message-ID: <17923.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-2-139.gw.umn.edu
X-Popmail-Charset: English
Organization: University of Minnesota, Twin Cities
Date: Fri, 3 Feb 1995 21:43:31 GMT
Lines: 18

On 26 Jan 1995 08:11:15 GMT, Manfred Kaul wrote:

>I am using DLL and C Connect under VisualWorks 2.0 and MS Windows 3.1
>and 3.11 WfW. I found it difficult to pass parameters as Strings.
>The easiest example for me has been WinExec, which calls another
>Windows program from within VisualWorks. A Debugger occurs telling
>
>	"External access failed".
>
>and SystemError

One thing I can think of is if the WinExec requires a LPCSTR type and not 
char*, did you try casting the string you are sending through?
e.g., 
cString := myInterface LPCSTR cast: 'abcd' gcCopyToHeap.
myInterface winExec: cString.

Raju Chithambaram
