Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, December 15, 2010 8:03:37 AM(UTC)
jacek.stolcman

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?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, December 16, 2010 1:18:16 AM(UTC)

Adnan Ismail  
Guest

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.
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.120 seconds.