Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy array from memory buffer to my allocated buffer using given C ext

Status
Not open for further replies.

elikl

Programmer
Jul 11, 2006
1
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top