Dear Sirs,
I am attempting to pass text between PB/Win 8.04 to the "Universal Library" from "Measurement Computing." For example, the declaration in the "C" header file for one of the functions which pass a pointer to character is as follows:
int EXTCCONV cbLogGetAIChannelCount(char* filename, int* aiCount);
1. Is ASCIIZ the most appropriate for passing Text to a function expecting a pointer-to-char, since text is null-terminated as required by C, and a pointer to ASCIIZ points directly to the beginning of the memory containing the ASCIIZ string, as I believe is required by a pointer-to-char in C.
2. Should I pass the pointer BYREF or BYVAL? As the documentation for PB/Win 8.04 says "When you pass an ASCIIZ string to a routine, you are actually passing a pointer to the string's data."
. a. What happens when we pass an ASCIIZ BYREF? Do we pass the array descriptor like when passing a numberic array, or do we just pass the pointer to the array?
. b. What happens when we pass an ASCIIZ BYVAL? Do we copy the whole ASCIIZ string onto the parameter stack or just the pointer?

Sincerely Yours,
John Harvill
I am attempting to pass text between PB/Win 8.04 to the "Universal Library" from "Measurement Computing." For example, the declaration in the "C" header file for one of the functions which pass a pointer to character is as follows:
int EXTCCONV cbLogGetAIChannelCount(char* filename, int* aiCount);
1. Is ASCIIZ the most appropriate for passing Text to a function expecting a pointer-to-char, since text is null-terminated as required by C, and a pointer to ASCIIZ points directly to the beginning of the memory containing the ASCIIZ string, as I believe is required by a pointer-to-char in C.
2. Should I pass the pointer BYREF or BYVAL? As the documentation for PB/Win 8.04 says "When you pass an ASCIIZ string to a routine, you are actually passing a pointer to the string's data."
. a. What happens when we pass an ASCIIZ BYREF? Do we pass the array descriptor like when passing a numberic array, or do we just pass the pointer to the array?
. b. What happens when we pass an ASCIIZ BYVAL? Do we copy the whole ASCIIZ string onto the parameter stack or just the pointer?

Sincerely Yours,
John Harvill
Comment