I'm using an external calls to 3rd party DLL.
I allocate a buffer in memory.
This function return the buffer handle.
Then I'm using another external function
FUNCTION long BufMemPointer( long mybuf_handle LPVOID FAR* mybuf_pointer)
Then I need to use another function to copy a 1 column array from the memory location pointed by this function with another function FUNCTION long CopyFromBuffToMyBuf(long buf_handle LPVOID mybuff, long size).
My question is what data type should I assign to the LPVOID FAR* mybuf_pointer to retrieve the pointer (maybe ulong)?
How can I copy the data from the memory buffer(array type) to my buffer using the results from function BufMemPointer and assign it to CopyFromBuffToMyBuf function.
Thank you.
I allocate a buffer in memory.
This function return the buffer handle.
Then I'm using another external function
FUNCTION long BufMemPointer( long mybuf_handle LPVOID FAR* mybuf_pointer)
Then I need to use another function to copy a 1 column array from the memory location pointed by this function with another function FUNCTION long CopyFromBuffToMyBuf(long buf_handle LPVOID mybuff, long size).
My question is what data type should I assign to the LPVOID FAR* mybuf_pointer to retrieve the pointer (maybe ulong)?
How can I copy the data from the memory buffer(array type) to my buffer using the results from function BufMemPointer and assign it to CopyFromBuffToMyBuf function.
Thank you.