Hi,

I'm bit lost.
The original declaration of LoadImage is
DECLARE FUNCTION LoadImage LIB "USER32.DLL" ALIAS "LoadImageA" (BYVAL hInst AS DWORD, lpsz AS ASCIIZ, BYVAL uType AS DWORD, BYVAL cxDesired AS LONG, BYVAL cyDesired AS LONG, BYVAL fuLoad AS DWORD) AS DWORD
As TB still doesn't support strings, I tried the strptr trick, but still no success

DECLARE FUNCTION LoadImage LIB "USER32.DLL" ALIAS "LoadImageA" (BYVAL hInst AS DWORD, lpsz AS dword, BYVAL uType AS DWORD, BYVAL cxDesired AS LONG, BYVAL cyDesired AS LONG, BYVAL fuLoad AS DWORD) AS DWORD

%IMAGE_BITMAP       = 0    
%LR_LOADFROMFILE    = &H0010 
DIM hImg AS DWORD
DIM picture AS STRING = App_SourcePath+"mybmp.bmp"
picture += chr$(0)

hImg = LoadImage ( %NULL, strptr(picture), %IMAGE_BITMAP, 0, 0, %LR_LOADFROMFILE)
  msgbox 0,"Handle obtained: "+FORMAT$(hImg)+$CRLF+"ImageFile: "+picture
Any ideas ?

Thanks,
Psch