Subject: Re: Calling cygwin.dll functions from Visual Basic
From: [email-masked] (Ted Lemon)

20 Dec 1996 19:09:04 -0800
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Original-To: [email-masked]
Original-cc: [email-masked]
In-reply-to: Your message of "Fri, 20 Dec 1996 17:01:01 CST."
             <[email-masked]> 
Original-Sender: [email-masked]

> And unless I badly misread the manual, you're supposed to
> pass both BASIC strings (each 4 bytes long, btw) as ByVal
> which points to the lovely null-terminated string part of
> those data structures.

The point is that you need to make sure the target string is already 4
bytes long (or whatever) before you call strcpy, or you'll be in
trouble.   You might write the code as:

	len = strlen (sourceStr)
	destStr = String (len + 1, 0)
	strcpy (destStr, sourceStr)

This ensures that the destination string has enough space in it.

If this is not your problem, then I don't really know what to suggest.

			       _MelloN_
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".