Thank you. I could not compile this lines.
4284Â Â **----------------------------------------------------------------------
4285Â Â #pragma BEGINDUMP
4286Â Â #define _WIN32_WINNT 0x0500
4287Â Â #define WINVER 0x0500
4288Â Â #include "windows.h"
4289Â Â #include "hbapi.h"
4290Â Â HB_FUNC( GETINPUTSTATE )
4291Â Â {
4292Â Â Â Â LASTINPUTINFO lpi;
4293Â Â Â Â lpi.cbSize = sizeof(LASTINPUTINFO);
4294Â Â Â Â if (!GetLastInputInfo(&lpi))
4295Â Â Â Â {
4296Â Â Â Â hb_retni(0);
4297Â Â Â Â }
4298Â Â Â Â hb_retni(lpi.dwTime);
4299Â Â }
4300
4301Â Â HB_FUNC ( GDIPLOADDIRECTIMAGE )
4302Â Â {
4303    LPWSTR file   = AnsiToWide( ( char * ) hb_parc( 1 ) );
4304    Bitmap * original =  new Bitmap(file  );
4305Â Â Â Â hb_retptr( original );
4306Â Â }
4307
4308Â Â HB_FUNC( GDIPLUSIMGGETFRAMECOUNT )
4309Â Â {
4310Â Â Â Bitmap * original = ( Bitmap * ) hb_parptr( 1 );
4311
4312Â Â Â UINT nFrame = original->GetFrameDimensionsCount();
4313Â Â Â GUID* pDimensionIDs = ( GUID* )malloc( sizeof(GUID)*nFrame );
4314
4315Â Â Â original->GetFrameDimensionsList(pDimensionIDs, nFrame);
4316Â Â Â UINT frameCount = original->GetFrameCount(pDimensionIDs );
4317Â Â Â free( pDimensionIDs );
4318Â Â Â hb_retni( frameCount );
4319Â Â }
4320
4321Â Â HB_FUNC( GDIPLUSIMGGETFRAME )
4322Â Â {
4323Â Â Â Bitmap * gifImage = ( Bitmap * ) hb_parptr( 1 );
4324Â Â Â int index = hb_parni(2) ;
4325
4326Â Â Â UINT nFrame = gifImage->GetFrameDimensionsCount();
4327
4328Â Â Â GUID* pDimensionIDs = (GUID*)malloc(sizeof(GUID)*nFrame);
4329
4330Â Â Â gifImage->GetFrameDimensionsList( pDimensionIDs, nFrame);
4331
4332Â Â Â gifImage->SelectActiveFrame( pDimensionIDs , index );
4333
4334   int nWidth  =  gifImage->GetWidth() ;
4335Â Â Â int nHeight = Â gifImage->GetHeight() ;
4336
4337   Bitmap * frameImage = new Bitmap( nWidth, nHeight  );
4338Â Â Â Graphics * gr = new Graphics( frameImage );
4339
4340Â Â Â gr->DrawImage(gifImage, 0, 0, nWidth, nHeight);
4341
4342Â Â Â free( pDimensionIDs ) ;
4343Â Â Â delete gr ;
4344
4345Â Â Â hb_retptr( frameImage );
4346Â Â }
4347Â Â #pragma ENDDUMP
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30040 for x86
Copyright (C) Microsoft Corporation. Â All rights reserved.
TApplication.c
.\TApplication.prg(4303): error C3861: 'AnsiToWide': identifier not found
.\TApplication.prg(4304): error C2065: 'Bitmap': undeclared identifier
.\TApplication.prg(4304): error C2065: 'original': undeclared identifier
.\TApplication.prg(4304): error C2061: syntax error: identifier 'Bitmap'
.\TApplication.prg(4305): error C2065: 'original': undeclared identifier
.\TApplication.prg(4310): error C2065: 'Bitmap': undeclared identifier
.\TApplication.prg(4310): error C2065: 'original': undeclared identifier
.\TApplication.prg(4310): error C2065: 'Bitmap': undeclared identifier
.\TApplication.prg(4310): error C2059: syntax error: ')'
.\TApplication.prg(4312): error C2065: 'original': undeclared identifier
.\TApplication.prg(4315): error C2065: 'original': undeclared identifier
.\TApplication.prg(4316): error C2065: 'original': undeclared identifier
.\TApplication.prg(4323): error C2065: 'Bitmap': undeclared identifier
.\TApplication.prg(4323): error C2065: 'gifImage': undeclared identifier
.\TApplication.prg(4323): error C2065: 'Bitmap': undeclared identifier
.\TApplication.prg(4323): error C2059: syntax error: ')'
.\TApplication.prg(4326): error C2065: 'gifImage': undeclared identifier
.\TApplication.prg(4330): error C2065: 'gifImage': undeclared identifier
.\TApplication.prg(4332): error C2065: 'gifImage': undeclared identifier
.\TApplication.prg(4334): error C2065: 'gifImage': undeclared identifier
.\TApplication.prg(4335): error C2065: 'gifImage': undeclared identifier
.\TApplication.prg(4337): error C2065: 'Bitmap': undeclared identifier
.\TApplication.prg(4337): error C2065: 'frameImage': undeclared identifier
.\TApplication.prg(4337): error C2061: syntax error: identifier 'Bitmap'
.\TApplication.prg(4338): error C2065: 'Graphics': undeclared identifier
.\TApplication.prg(4338): error C2065: 'gr': undeclared identifier
.\TApplication.prg(4338): error C2061: syntax error: identifier 'Graphics'
.\TApplication.prg(4340): error C2065: 'gr': undeclared identifier
.\TApplication.prg(4340): error C2065: 'gifImage': undeclared identifier
.\TApplication.prg(4343): error C2065: 'gr': undeclared identifier
.\TApplication.prg(4343): error C2541: 'delete': cannot delete objects that are
not pointers
.\TApplication.prg(4345): error C2065: 'frameImage': undeclared identifier
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio\2019
\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x86\cl.exe"' : return code '0x2
'
Stop.
Any help. Thanks