- Код: Выделить всё
DECLARE FUNCTION lua_pushfstring CDECL LIB "lua.dll" ALIAS "lua_pushfstring" _
(BYVAL L AS DWORD, _
BYREF fmt AS ASCIIZ, _
OPT BYVAL a AS ANY, _
OPT BYVAL b AS ANY, _
OPT BYVAL c AS ANY, _
OPT BYVAL d AS ANY, _
OPT BYVAL e AS ANY, _
OPT BYVAL f AS ANY, _
OPT BYVAL g AS ANY) AS DWORD
Обертка:
- Код: Выделить всё
FUNCTION Lua_PushFString CDECL (BYVAL L AS DWORD, _
BYREF fmt AS ASCIIZ, _
OPT BYVAL a AS ANY, _
OPT BYVAL b AS ANY, _
OPT BYVAL c AS ANY, _
OPT BYVAL d AS ANY, _
OPT BYVAL e AS ANY, _
OPT BYVAL f AS ANY, _
OPT BYVAL g AS ANY) AS DWORD
LOCAL Res AS DWORD
LOCAL zLua_PushFString AS DWORD
zLua_PushFString = GetProcAddressDirectly (hLua_DLL, "lua_pushfstring")
CALL DWORD zLua_PushFString USING Lua_PushFString (L,fmt,a,b,c,d,e,f,g) TO Res
FUNCTION = Res
END FUNCTION
Проблема собственно в типе ANY, компилятор выдает ошибку: "Undefined TYPE". Можно-ли использовать тип VARIANT вместо ANY?
Пожалуйста подскажите что делать, буду рад любым советам.