Hi guys
This is a function I use from a DLL in visual basic I was trying to use it in MPL scripting system but couldn't get it to work.
This is how I use it in VB:
code:
Public Declare Function GPML_SetTextMultilineData Lib "my.dll" (ByVal wPosX As Short, ByVal wPosY As Short, ByVal pText As String, ByVal dwTextColor As Integer, ByVal bBlackBackground As Boolean, ByVal cFontSize As Byte, ByVal bTextBold As Boolean, ByVal wSizeX As Short, ByVal wSizeY As Short, ByVal cFontFamily As Byte) As Boolean
And this was how I tried to use it in js:
code:
Interop.Call("my.dll","GPML_SetTextMultilineData",15, 520, "Hi", 0, false, 20, false, 770, 100, 1);
This is the error I get:
Error: Wrong number of arguments or invalid property assignment.
Line: 3. Code: -2146827838.
Function OnEvent_Initialize returned an error. Code: -2147352567
Any help is appreciated.
Thanks