Search found 42 matches: globalfree

Return to advanced search

SCREEN CAPTURE and ClipBoard

... hDib := DibFromBitmap( hBmp ) If Empty( hDib ) MsgInfo("I can't create Bitmap","I'm Sorry") RETURN EndIf DibWrite( cBmpFile, hDib ) GlobalFree( hDib ) DeleteObject( hBmp ) Clipper 5.3b , Blinker 5.1 and FW23 --------------------------------------------------------------------------------
by Antonio Linares
Wed Aug 27, 2008 7:39 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 94021

Hello Antoinio,

In some samples I see following code:

EXIT PROCEDURE PrgExit

Set RESOURCES TO
GlobalFree()
ResAllFree()
Release All
SysRefresh()
Clear Memory

RETURN

Do you suggest to use such a procedure?

Thanks in advance
Otto
by Otto
Wed Jun 04, 2008 8:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Process remains in memory.
Replies: 10
Views: 2213

... pMem, szSubBlock, ( LPVOID * ) &szOut, &nLen ) ) bOk = TRUE; hb_xfree( szBlock ); hb_xfree( szSubBlock ); } GlobalUnlock( hMem ); GlobalFree( hMem ); } } } if( bOk ) hb_retc( szOut ); else hb_retc( "" ); } #pragma ENDDUMP //----------------------------------------------------------------------------//
by Marco Turco
Tue May 06, 2008 1:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: File-information in exe-file
Replies: 8
Views: 1927

... ENDIF lChDir("\"+CurDir()+"\Graficas") hBmp := WndBitmap( Self:hWnd ) hDib := DibFromBitmap( hBmp ) DibWrite( cFile, hDib ) GloBalFree( hDib ) DeleteObject( hBmp ) IF ::nLanguage=2 MsgInfo("La imagen ha sido grabada.","Información") ELSE MsgInfo("Graph image save.","Info") ...
by Francisco Horta
Thu Jul 05, 2007 5:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TGraph 2.0 de Alfredo Arteaga
Replies: 16
Views: 6033

hDib := DibFromBitmap( hBmp )

DibWrite( "dibujo.bmp", hDib )

GlobalFree( hDib )
by Paco Garcia
Fri Jan 19, 2007 8:40 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Pintar un pixel sobre un Bmp
Replies: 10
Views: 2871

... don't exist I try DEFAULT cFile := CurDir() + "\Test.Bmp" hBmp := WndBitmap( oWnd:hWnd ) hDib := DibFromBitmap( hBmp ) DibWrite( cFile, hDib ) GloBalFree( hDib ) DeleteObject( hBmp ) But I have "error 6" Any Idea Regards MAurizio
by Maurizio
Tue Sep 05, 2006 8:04 am
 
Forum: FiveWin for Pocket PC
Topic: Signatures
Replies: 11
Views: 3068

Save2Bmp

... hBmp := WndBitmap( oWnd:hWnd ) hDib := DibFromBitmap( hBmp ) DibWrite( cFile, hDib ) GloBalFree( hDib ) DeleteObject( hBmp ) RETURN ( nil ) but I obtain this error: myprg.obj : error LNK2001: unresolved external ...
by Pier Luigi
Sat Aug 26, 2006 12:57 pm
 
Forum: FiveWin for Pocket PC
Topic: Save2Bmp
Replies: 4
Views: 1368

... the memory allocated to a native format image, as returned by TWAIN_AcquireNative. // (For those coding in C or C++, this is just a call to GlobalFree.) { if (hdib) GlobalFree(hdib); } // TWAIN_FreeNative int EZTAPI TWAIN_AcquireToClipboard(HWND hwndApp, unsigned wPixTypes) // Like AcquireNative, ...
by areang
Mon Aug 07, 2006 3:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Please teach me about FWH and xHarbour
Replies: 3
Views: 4275

How to use Free TWAIN_32.dll

... szDriveName, szFileLocation); _giRowsCopied = 0; _gpHeader = NULL; _gpImageData = NULL; _gpCurrentLine = NULL; _gdwLineSize = 0l; if(_ghDIB) { GlobalFree(_ghDIB); _ghDIB = NULL; } if(GetCurrentXResolution()==100.0F) { /* * Easy, this is the format of our originals */ if(GetCurrentPixelType()==TWPT_GRAY) ...
by areang
Thu Aug 03, 2006 9:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to use Free TWAIN_32.dll
Replies: 0
Views: 1736

João, GlobalFree() es una función del API de Windows para liberar un bloque de memoria previamente reservado con GlobalAlloc(). Con Harbour/xHarbour debemos usar hb_xgrab() y hb_xfree() en vez de esas funciones, para que Harbour/xHarbour ...
by karinha
Mon Jul 10, 2006 8:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿Que hace exactamente ResAllFree() y PostQuitMessage(0)?
Replies: 6
Views: 1637

João,

GlobalFree() es una función del API de Windows para liberar un bloque de memoria previamente reservado con GlobalAlloc(). Con Harbour/xHarbour debemos usar hb_xgrab() y hb_xfree() en vez de esas funciones, para que Harbour/xHarbour hagan las comprobaciones internas necesarias.
by Antonio Linares
Mon Jul 10, 2006 5:09 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿Que hace exactamente ResAllFree() y PostQuitMessage(0)?
Replies: 6
Views: 1637

Antonio, y GlobalFree()??
by karinha
Mon Jul 10, 2006 12:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿Que hace exactamente ResAllFree() y PostQuitMessage(0)?
Replies: 6
Views: 1637
Previous

Return to advanced search