Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Image -> DB! Problem is then definition of L_HANDLE
Started by FPahlke at 07-16-2006 2:58. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  07-16-2006, 2:58
FPahlke is not online. Last active: 7/16/2006 7:50:22 AM FPahlke

Not Ranked
Joined on 07-11-2006
Posts 2
Image -> DB! Problem is then definition of L_HANDLE
Reply Quote
Hi

I want to save a Bitmap in a BLOB DB Filed. I found this:

Delphi 7 ->
--------------------------------------------------------------------------------------
JPEGMS : TMemoryStream;
hMem   : L_HANDLE;
pMem   : PChar;
iSize  : Integer;

LEADImage1.load('11.jpg', 24, 1, 1);
JPEGMS := TMemoryStream.Create;
LEADImage1.SaveMemory(hMem, FILE_JFIF, LEADImage1.infoBits, 80, iSize);
LEADImage1.GetMemoryInfo(hMem, 0, iSize);
pMem := GlobalLock(hMem);
JPEGMS.Write(pMem[0],iSize);
GlobalUnlock(hMem);
GlobalFree(hMem);
JPEGMS.SaveToFile('fromVCLMemStream.jpg'); // use your database code instead.
--------------------------------------------------------------------------------------

But I get an error because the compiler does not know hMem: L_HANDLE; I've got the EVAL Version (14.5) of the LeadTools (VCL). How can I found the definition of L_HANDLE or what can I write in the uses line?

Many thanks

Frank

   Report 
  07-18-2006, 18:42
Amin is not online. Last active: 10/29/2008 7:59:53 AM Amin



Top 10 Posts
Joined on 06-27-2005
Posts 748
Re: Image -> DB! Problem is then definition of L_HANDLE
Reply Quote
Frank,
For this type and other LEADTOOLS data types, you need to add LEADTYP to the Uses section in your .PAS file.


Amin Dodin
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Database » Image -> DB! Problem is then definition of L_HANDLE

Powered by Community Server, by Telligent Systems