One additional question: in your sample code the
FUNCTION is defined AS WORD, but in WIN32API.INC several FUNCTIONs do refer to the
language-ID param AS LONG. Maybe the FUNCTION should return a long integer in order
to avoid "parameter mismatch" errors?
FUNCTION is defined AS WORD, but in WIN32API.INC several FUNCTIONs do refer to the
language-ID param AS LONG. Maybe the FUNCTION should return a long integer in order
to avoid "parameter mismatch" errors?
in a LONG with room to spare, so there is no real conflict involved. If you aim to
pass the function result directly to a function that takes a LONG, consider the
BYCOPY keyword.
------------------
Tom Hanlin
PowerBASIC Staff
Leave a comment: