Mail Archives: cygwin/1996/12/20/19:09:04
> 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
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -