Look at this code please:
- Code: Select all Expand view
- HB_FUNC( CRESTOSTR )
{
HRSRC hRes = FindResource( ( HMODULE ) GetResources(), MAKEINTRESOURCE( hb_parni( 1 ) ), RT_BITMAP );
HANDLE hResource = LoadResource( ( HINSTANCE ) GetResources(), hRes );
hb_retclen( ( LPSTR ) LockResource( hResource ), sizeof( hResource ) );
}
? Len( cResToStr( 7777 ) ) always return 4 bytes instead a string of a full bitmap bits.
The same occur with original crestostr() FWH function.
Any hint please ?
Regards,
Toninho.