Añadida la function al final de tbitmap.prg lanza los errores de abajo .... me faltan cosas para que compile.
- Code: Select all Expand view
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
#include <hbdefs.h>
HB_FUNC( FWPNGFROMMEMORY )
{
PFWPNG pPng = ( PFWPNG ) hb_xgrab( sizeof( FWPNG ) );
HB_FHANDLE Info = ( HB_FHANDLE ) hb_parc( 1 );
ReadFromMemory( pPng, Info );
hb_retnl( ( LONG ) pPng->hBitmap );
hb_xfree( pPng->image_data );
hb_xfree( pPng->row_pointers );
hb_xfree( pPng );
}
#pragma ENDDUMP
Obj\bitmap.c:
Error E2451 bitmap.prg 1112: Undefined symbol 'PFWPNG' in function HB_FUN_FWPNGFROMMEMORY
Error E2379 bitmap.prg 1112: Statement missing ; in function HB_FUN_FWPNGFROMMEMORY
Error E2140 bitmap.prg 1113: Declaration is not allowed here in function HB_FUN_FWPNGFROMMEMORY
Error E2451 bitmap.prg 1115: Undefined symbol 'pPng' in function HB_FUN_FWPNGFROMMEMORY
Warning W8065 bitmap.prg 1115: Call to function 'ReadFromMemory' with no prototype in function HB_FUN_FWPNGFROMMEMORY