Heya,
Thanks in Advance..
I'm using the call Dword statement, I know it's successfully calling the function from the .dll, and i'm using the "USING' statement along with it. BUT, It doesn't return a string value. When I use a string value for instance and say
Call Dword blahblah using blahblah(blah,blah,blah) to stringVar
It retruns a string that's like 78768 bytes long, when i'm only returning a string of 5 characters. And when i change the .dll and the declares in the .exe to use the Asciiz * 50 type dec instead of String, it doesn't return anything, and the length of the data is 0. I'm stuck, this function works fine with Byte, Long, etc... Help.
Function pInit Alias "pInit" (pMode As Byte, sckPtr As Dword, cfgPtr As Dword) Export As Asciiz * 64
<CODE>
------------------
Thanks in Advance..
I'm using the call Dword statement, I know it's successfully calling the function from the .dll, and i'm using the "USING' statement along with it. BUT, It doesn't return a string value. When I use a string value for instance and say
Call Dword blahblah using blahblah(blah,blah,blah) to stringVar
It retruns a string that's like 78768 bytes long, when i'm only returning a string of 5 characters. And when i change the .dll and the declares in the .exe to use the Asciiz * 50 type dec instead of String, it doesn't return anything, and the length of the data is 0. I'm stuck, this function works fine with Byte, Long, etc... Help.
Function pInit Alias "pInit" (pMode As Byte, sckPtr As Dword, cfgPtr As Dword) Export As Asciiz * 64
<CODE>
Code:
(sLibName = String Array, or Asciiz Array) (Dword must be used so please don't specify a solution of using implicit .dll calling. thanks) ReDim Preserve sLibName(1 [img]http://www.powerbasic.com/support/forums/tongue.gif[/img]lgCount) idPlugin(plgCount) = LoadLibrary(outFile) pAddr = GetProcAddress(idPlugin(plgCount), "pInit") Call Dword pAddr Using _ pInit(%SERVER, CodePtr(sckSend), CodePtr(GetConfig)) _ To sLibName(plgCount)
Comment