now i have use COMPILE_HMG_UNICODE and reduce it to this Warnings
hbmk2: Compiling...
HB_FUNC.PRG: In function 'HB_FUN_DRAGQUERYFILES':
HB_FUNC.PRG:132:32: warning: passing argument 3 of 'DragQueryFileW' from incompatible pointer type [-Wincompatible-pointer-types]
In file included from c:/hmg.3.4.4/mingw-64/x86_64-w64-mingw32/include/windows.h:89:0,
from HB_FUNC.PRG:7:
c:/hmg.3.4.4/mingw-64/x86_64-w64-mingw32/include/shellapi.h:71:19: note: expected 'LPWSTR {aka short unsigned int *}' but argument is of type 'char *'
SHSTDAPI_(UINT) DragQueryFileW (HDROP hDrop, UINT iFile, LPWSTR lpszFile, UINT cch);
^
Code: Select all
HB_FUNC( DRAGQUERYFILES )
{
HDROP hDrop;
hDrop = (HDROP) HMG_parnl( 1 ) ;
int iFiles = DragQueryFile( hDrop, 0xFFFFFFFF, 0, 0 );
int i;
char bBuffer[ 250 ];
hb_reta( iFiles );
for( i = 0; i < iFiles; i++ )
{
DragQueryFile( hDrop, i, ( char * ) bBuffer, 249 );
hb_storvc( ( char * ) bBuffer, -1, i + 1 );
}
}