LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Using GlobalAlloc buffers with L_ReadFileCommentMemory
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, December 15, 2010 8:03:37 AM(UTC)
Groups: Registered
Posts: 1
Do I have to use GlobalAlloc / GlobalLock for the pComment buffer passed to L_ReadFileCommentMemory or can I pass a normal new [] heap allocated buffer?
#2
Posted
:
Thursday, December 16, 2010 1:18:16 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
The pointer you pass to the function can be any valid pointer that has the address of any memory buffer.
It can be allocated using "new", or even a local 'auto' stack variable such as:
L_UCHAR commentBuffer[8]; //if you already know Comment Length is 8 bytes.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Using GlobalAlloc buffers with L_ReadFileCommentMemory
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.