Problem with BmpToStr() 9.11 vs 10.4

Problem with BmpToStr() 9.11 vs 10.4

Postby fraxzi » Thu May 20, 2010 8:30 am

Dear Mr. Antonio,

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
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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Problem with BmpToStr() 9.11 vs 10.4

Postby Antonio Linares » Thu May 20, 2010 9:43 am

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;
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem with BmpToStr() 9.11 vs 10.4

Postby fraxzi » Thu May 20, 2010 9:46 am

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;
 



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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Problem with BmpToStr() 9.11 vs 10.4

Postby Antonio Linares » Thu May 20, 2010 9:48 am

Frances,

Do you use Borland C ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem with BmpToStr() 9.11 vs 10.4

Postby fraxzi » Thu May 20, 2010 9: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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Problem with BmpToStr() 9.11 vs 10.4

Postby Antonio Linares » Thu May 20, 2010 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem with BmpToStr() 9.11 vs 10.4

Postby fraxzi » Thu May 20, 2010 9: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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Problem with BmpToStr() 9.11 vs 10.4

Postby fraxzi » 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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Problem with BmpToStr() 9.11 vs 10.4

Postby fraxzi » 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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Problem with BmpToStr() 9.11 vs 10.4

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem with BmpToStr() 9.11 vs 10.4

Postby fraxzi » 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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 31 guests