Here is the syntax using FWH9.11 Works great!
- Code: Select all Expand view
- table->photo_image := BmpToStr(oImg:hBitmap)
BUT with the same syntax and using FWH10.4, image cannot be displayed..
I wont go back to V9.11
Please advise.
Regards,
Frances
table->photo_image := BmpToStr(oImg:hBitmap)
bmf.bfType = 'BM';
bmf.bfType = 0x4D42;
Antonio Linares wrote:Frances,
Please replace this line in function BmpToStr() in /source/winapi/dibbmp.c:
- Code: Select all Expand view
bmf.bfType = 'BM';
with:
- Code: Select all Expand view
bmf.bfType = 0x4D42;
Antonio Linares wrote:Frances,
Do you use Borland C ?
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
dibbmp.c:
Error E2209 dibbmp.c 5: Unable to open include file 'WinTen.h'
Error E2209 dibbmp.c 7: Unable to open include file 'ClipApi.h'
Warning W8060 dibbmp.c 158: Possibly incorrect assignment in function DibFromBitmap
Warning W8065 dibbmp.c 206: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8065 dibbmp.c 207: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8070 dibbmp.c 208: Function should return a value in function HB_FUNC
Warning W8057 dibbmp.c 208: Parameter 'DIBFROMBIT' is never used in function HB_FUNC
Error E2238 dibbmp.c 213: Multiple declaration for 'HB_FUNC'
Error E2344 dibbmp.c 203: Earlier declaration of 'HB_FUNC'
Warning W8065 dibbmp.c 221: Call to function 'hb_retl' with no prototype in function HB_FUNC
Warning W8065 dibbmp.c 227: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8065 dibbmp.c 228: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8065 dibbmp.c 244: Call to function 'hb_retl' with no prototype in function HB_FUNC
Warning W8070 dibbmp.c 245: Function should return a value in function HB_FUNC
Warning W8057 dibbmp.c 245: Parameter 'HASALPHA' is never used in function HB_FUNC
Error E2238 dibbmp.c 250: Multiple declaration for 'HB_FUNC'
Error E2344 dibbmp.c 212: Earlier declaration of 'HB_FUNC'
Warning W8065 dibbmp.c 251: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8065 dibbmp.c 257: Call to function 'hb_xgrab' with no prototype in function HB_FUNC
Warning W8069 dibbmp.c 257: Nonportable pointer conversion in function HB_FUNC
Warning W8065 dibbmp.c 267: Call to function 'hb_retclen' with no prototype in function HB_FUNC
Warning W8065 dibbmp.c 271: Call to function 'hb_xfree' with no prototype in function HB_FUNC
Warning W8070 dibbmp.c 272: Function should return a value in function HB_FUNC
Warning W8057 dibbmp.c 272: Parameter 'BMPTOSTR' is never used in function HB_FUNC
*** 6 errors in Compile ***
bcc32 -c -Id:\xHB1.21.6573\include;d:\fwh104\include dibbmp.c
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
dibbmp.c:
Warning W8060 dibbmp.c 158: Possibly incorrect assignment in function DibFromBitmap
Warning W8065 dibbmp.c 206: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8065 dibbmp.c 207: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8070 dibbmp.c 208: Function should return a value in function HB_FUNC
Warning W8057 dibbmp.c 208: Parameter 'DIBFROMBIT' is never used in function HB_FUNC
Error E2238 dibbmp.c 213: Multiple declaration for 'HB_FUNC'
Error E2344 dibbmp.c 203: Earlier declaration of 'HB_FUNC'
Warning W8065 dibbmp.c 221: Call to function 'hb_retl' with no prototype in function HB_FUNC
Warning W8065 dibbmp.c 227: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8065 dibbmp.c 228: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8065 dibbmp.c 244: Call to function 'hb_retl' with no prototype in function HB_FUNC
Warning W8070 dibbmp.c 245: Function should return a value in function HB_FUNC
Warning W8057 dibbmp.c 245: Parameter 'HASALPHA' is never used in function HB_FUNC
Error E2238 dibbmp.c 250: Multiple declaration for 'HB_FUNC'
Error E2344 dibbmp.c 212: Earlier declaration of 'HB_FUNC'
Warning W8065 dibbmp.c 251: Call to function 'hb_parnl' with no prototype in function HB_FUNC
Warning W8065 dibbmp.c 257: Call to function 'hb_xgrab' with no prototype in function HB_FUNC
Warning W8069 dibbmp.c 257: Nonportable pointer conversion in function HB_FUNC
Warning W8065 dibbmp.c 267: Call to function 'hb_retclen' with no prototype in function HB_FUNC
Warning W8065 dibbmp.c 271: Call to function 'hb_xfree' with no prototype in function HB_FUNC
Warning W8070 dibbmp.c 272: Function should return a value in function HB_FUNC
Warning W8057 dibbmp.c 272: Parameter 'BMPTOSTR' is never used in function HB_FUNC
*** 4 errors in Compile ***
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Silvio.Falconi and 100 guests