- Code: Select all Expand view
Function Save2Bmp( cFile )
LOCAL hBmp, hDib
DEFAULT cFile := CurDir() + "\Graph.Bmp"
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 symbol "void __cdecl HB_FUN_GLOBALFREE(void)" (?HB_FUN_GLOBALFREE@@YAXXZ)
myprg.obj : error LNK2001: unresolved external symbol "void __cdecl HB_FUN_WNDBITMAP(void)" (?HB_FUN_WNDBITMAP@@YAXXZ)
GlobalFree and WndBitmap functions are included in FWPPC?
Regards,
Pier Luigi