jack
01-01-2009, 05:12
don't see anything on pointers also nothing on type "any"
for example, yesterday I was adding declarations for the gmp library and the gmp_sprintf will take mpf, mpz and mpq types
so I made three aliases to the same function but today tried this
DECLARE function MPF_Sprintf CDECL LIB "gmp.dll" ALIAS "__gmp_sprintf" (BYREF s AS ASCIIZ, BYREF fmt AS ASCIIZ, BYREF X AS ANY ) as long
and it works for all three types.
hope am not overlooking something.
for example, yesterday I was adding declarations for the gmp library and the gmp_sprintf will take mpf, mpz and mpq types
so I made three aliases to the same function but today tried this
DECLARE function MPF_Sprintf CDECL LIB "gmp.dll" ALIAS "__gmp_sprintf" (BYREF s AS ASCIIZ, BYREF fmt AS ASCIIZ, BYREF X AS ANY ) as long
and it works for all three types.
hope am not overlooking something.