More C porting fun - I have a C DLL function that is declared:
void CDECL ReadValues(hWindow as HWND, ... );
According to the documentation, the function can accept ANY
number of optional params after the required first param, as long
as the list is terminated by a NULL.
I realize I could just declare this in PB using CDECL with 10 or
20 optional params to cover my anticipated usage of this function,
but I thought I'd ask if there's a simpler method. For example,
could I declare a single optional param but pass 10 params? If not,
here's a suggestion for the wish list, adding a syntax similar to
the "..." above for an unknown list of parameters.
Thanks!
------------------
Mark Newman
void CDECL ReadValues(hWindow as HWND, ... );
According to the documentation, the function can accept ANY
number of optional params after the required first param, as long
as the list is terminated by a NULL.
I realize I could just declare this in PB using CDECL with 10 or
20 optional params to cover my anticipated usage of this function,
but I thought I'd ask if there's a simpler method. For example,
could I declare a single optional param but pass 10 params? If not,
here's a suggestion for the wish list, adding a syntax similar to
the "..." above for an unknown list of parameters.
Thanks!
------------------
Mark Newman
Comment