I need to call a DLL with a prototype which looks like this:
'BOOL DLLENTRY SomeDLL(GLOBALHANDLE FAR *SomeList)
DECLARE FUNCTION SomeDLL LIB "SOME.DLL" (BYVAL SomeList AS DWORD PTR) AS LONG
The dword points to a string array. How do I define this, and how do I define an array to use this pointer?
DIM SomeArray(10) AS STRING ' The list
DIM SomeList as DWORD PTR ' Doesn't this point to a DWORD?
SomeList = VARPTR(SomeArray()) ' To get the string segment?
------------------
Thanks,
John Kovacich
'BOOL DLLENTRY SomeDLL(GLOBALHANDLE FAR *SomeList)
DECLARE FUNCTION SomeDLL LIB "SOME.DLL" (BYVAL SomeList AS DWORD PTR) AS LONG
The dword points to a string array. How do I define this, and how do I define an array to use this pointer?
DIM SomeArray(10) AS STRING ' The list
DIM SomeList as DWORD PTR ' Doesn't this point to a DWORD?
SomeList = VARPTR(SomeArray()) ' To get the string segment?
------------------
Thanks,
John Kovacich
Comment