PDA

View Full Version : problem with DLL.CallFunction



delanne
09-14-2006, 09:46 AM
Hi,

I need to use LL.CallFunction with a SessionVar as argument which is a string.

I try this with no success :
DLL.CallFunction(_TempLaunchFolder .. "\\mydll.dll", "myfunc", "\"SessionVar.Expand(\"%MyVar%\")\"", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL)

MyFync receive the string "SessionVar.Expand(\"%MyVar%\")" and not the value of the SessionVar.

I also try this :
DLL.CallFunction(_TempLaunchFolder .. "\\mydll.dll", "myfunc", SessionVar.Expand("%MyVar%"), DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL)

MyFunc receive a NULL string ;(

Please help ;)

thanks

Worm
09-14-2006, 10:06 AM
TRY THIS:


DLL.CallFunction(_TempLaunchFolder .. "\\mydll.dll", "myfunc", "\""..SessionVar.Expand("%MyVar%").."\"", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL)