Antonio,
Below is a sample calling prg:
#include "FiveWin.ch"
function Main()
local cString := "Hello world!"
local cString2 := "ABC or 123?"
local LPARM := .T., retarr := {}, passparm := {}
local NPARM := 998877
local DPARM := DATE()
DOPROC( "MAIN" )
aadd(passparm, {cstring, cstring2, nparm, lparm, dparm } )
retarr := DOPROC( "ONEPARAM", @passparm )
MsgInfo( "mydll returned OK to myEXE" )
return nil
DLL FUNCTION DOPROC( cProc AS LPSTR, aparm AS ???? ) AS LONG PASCAL LIB "MYDLL.dll"
What we would like to do is call the dll with an array of parameters. This array may contain various data types.
We would like to get back an array contining various data items as needed. Also, is it possible to change the contents of the original passed array and see the results in the calling prg?
Once again your assistance is greatly appreciated.