FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with BmpToStr() 9.11 vs 10.4
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Problem with BmpToStr() 9.11 vs 10.4
Posted: Thu May 20, 2010 08:30 AM
Dear Mr. Antonio,

Here is the syntax using FWH9.11 Works great!
Code (fw): Select all Collapse
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
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with BmpToStr() 9.11 vs 10.4
Posted: Thu May 20, 2010 09:43 AM
Frances,

Please replace this line in function BmpToStr() in /source/winapi/dibbmp.c:
Code (fw): Select all Collapse
bmf.bfType      = 'BM';

with:
Code (fw): Select all Collapse
bmf.bfType = 0x4D42;
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: Problem with BmpToStr() 9.11 vs 10.4
Posted: Thu May 20, 2010 09:46 AM
Antonio Linares wrote:Frances,

Please replace this line in function BmpToStr() in /source/winapi/dibbmp.c:
Code (fw): Select all Collapse
bmf.bfType      = 'BM';

with:
Code (fw): Select all Collapse
bmf.bfType = 0x4D42;



Mr. Antonio,

How can I compile this and include in my library?

Sorry.. very urgent. apps compiled with 10.4 already deployed..


Regards,
Frances
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with BmpToStr() 9.11 vs 10.4
Posted: Thu May 20, 2010 09:48 AM

Frances,

Do you use Borland C ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: Problem with BmpToStr() 9.11 vs 10.4
Posted: Thu May 20, 2010 09:49 AM
Antonio Linares wrote:Frances,

Do you use Borland C ?



Mr. Antonio,

I use BCC582 for all the apps..


Regards,
Frances
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with BmpToStr() 9.11 vs 10.4
Posted: Thu May 20, 2010 09:51 AM

Frances,

Simply do:

c:\bcc582\bin\bcc32 -c -Ic:\xharbour\include dibbmp.c

then replace the resulting dibbmp.obj into fivehc.lib this way:

c:\bcc582\bin\tlib fivehc.lib -+ dibbmp.obj

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: Problem with BmpToStr() 9.11 vs 10.4
Posted: Thu May 20, 2010 09:53 AM

Mr. Antonio,

I will try immediately... Will let you know..

Regards,
Frances

Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: Problem with BmpToStr() 9.11 vs 10.4
Posted: Thu May 20, 2010 10:04 AM
Dear Mr. Antonio,

I got errors:


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 ***


Im using xHarbour 1.21.6406 for this compile


Regards,
Frances
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: Problem with BmpToStr() 9.11 vs 10.4
Posted: Thu May 20, 2010 10:08 AM
Mr. Antonio,

or using this command


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 ***
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with BmpToStr() 9.11 vs 10.4
Posted: Thu May 20, 2010 11:49 AM
Frances,

Here you have dibbmp.obj:

http://www.mediafire.com/?eoyqi0z3xnj
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: Problem with BmpToStr() 9.11 vs 10.4
Posted: Thu May 20, 2010 11:50 PM
Antonio Linares wrote:Frances,

Here you have dibbmp.obj:

http://www.mediafire.com/?eoyqi0z3xnj


Dear Mr. Antonio,

With this new dibbmp.obj the problem solved.

I hope this included in 10.5 :-)


Best Regards,
Frances
Kind Regards,

Frances



Fivewin for xHarbour v18.07

xHarbour v1.2.3.x

BCC 7.3 + PellesC8 ( Resource Compiler only)

ADS 10.1 / MariaDB

Crystal Reports 8.5/9.23 DE

xMate v1.15

Continue the discussion