[Info-vax] VAX Macro to C conversion

Arne Vajhøj arne at vajhoej.dk
Thu Jul 11 17:32:15 EDT 2019


On 7/11/2019 10:17 AM, Bill Gunshannon wrote:
> On 7/10/19 10:03 PM, Dave Froble wrote:
>> On 7/10/2019 8:20 PM, Bill Gunshannon wrote:
>>> If the string is defined in a certain way, like it is in BASIC,
>>> your hamstrung if you want to use some other form of string.  If
>>> you wanted to pass a null-terminated string from BASIC to some
>>> other language, how would you do it?

>> Have a fixed length string as a buffer, set it equal to the string + 
>> Chr$(0%), and pass it by the required method, By Ref, By Value, or 
>> even By Desc.

> And, as with so many other languages, that only works with one
> particular version of the language.

There is nothing unusual in language mixing being
platform specific.

If you want to call something from C on Windows
you will have to choose between __cdecl, __stdcall
and __fastcall.

Arne





More information about the Info-vax mailing list