I'm creating "shared libraries" for some ready-made engines (GameMaker Studio2 & AppGameKit), both support external libraries ...
Here is an example of a library I am doing:
Code: Select all
DeclareDLL.s SC_Init()
ProcedureDLL.s DLL_Init(Param1.i,Param2.i)
MessageRequester(PeekS(Param1,-1,#PB_UTF8),PeekS(Param2,-1,#PB_UTF8))
ProcedureReturn "HelloWorld"
EndProcedure
to receive strings inside the engines to PurebasicDLL I should use the command: PeekS (PARAM_NAME, -1, # PB_UTF8) ...
but when I need to "return" strings to these two engines, only the first character is sent ...
follow the screenshots
http://prntscr.com/ly4rry
http://prntscr.com/ly4s5c
Is there any way to resolve this in code or is this internal problem in DLL processing of engines?