Example of C Function Returning a String to Basic (47756)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1
This article was previously published under Q47756 SUMMARY
The two programs shown below demonstrate how a C function can return a
string to a compiled Basic program.
For Microsoft Basic PDS 7.00 and 7.10, this example applies only to
near strings. If you are using far strings (BC /Fs on compile or when
using QBX.EXE), you must use the string-manipulation routines supplied
with Basic PDS 7.00 and 7.10 (StringAssign, StringRelease,
StringAddress, and StringLength). For more information about far
strings, see Chapter 13 of "Microsoft Basic 7.0: Programmer's Guide"
for versions 7.00 and 7.10.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB47756 |
---|
|