FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour fwh 10.01 and xhb commercial
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
fwh 10.01 and xhb commercial
Posted: Mon Feb 15, 2010 06:03 AM

Antonio

When trying to compile one of my apps with xhb commercial i get an unresolved external symbol -hb-mbtowc

I am linking xhb2.obj

any clue ?

Thanks

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: fwh 10.01 and xhb commercial
Posted: Mon Feb 15, 2010 11:28 AM
Richard,

Please try to add this code to your main PRG:
Code (fw): Select all Collapse
#pragma BEGINDUMP

void * AnsiToWide( char * );

void * hb_mbtowc( char * c )
{
   return AnsiToWide( c );
}

#pragma ENDDUMP
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: fwh 10.01 and xhb commercial
Posted: Mon Feb 15, 2010 12:13 PM

Antonio

Still not good , this is the message i get

Redeclaration of 'hb_mbtowc' previously declared at c:\xhb\include\hbwince.h (165) : found 'void * _cdec1 function (char ) expected
unsigned short
_cdec1 function (const char *)

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: fwh 10.01 and xhb commercial
Posted: Mon Feb 15, 2010 01:42 PM
Richard,

Lets try it this way:
Code (fw): Select all Collapse
#pragma BEGINDUMP

unsigned short * AnsiToWide( const char * );

unsigned short * hb_mbtowc( const char * c )
{
   return AnsiToWide( c );
}

#pragma ENDDUMP

Curiously the function prototype is declared in hbwince.h but its code is not available, unless there is a missing lib to link. I have searched in xharbour\lib but I only find common.lib and rtl.lib which are already linked.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: fwh 10.01 and xhb commercial
Posted: Mon Feb 15, 2010 01:59 PM

Antonio

It compiles ok now

I get module activex was compiled in pcode version 10 and this version of xharbour requires pcode 9

I guess i have to recopile the whole fw lib

Or maybe easier to create the uestudio project for this app,

Thanks for the help,

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: fwh 10.01 and xhb commercial
Posted: Mon Feb 15, 2010 02:10 PM

Richard,

Isn't there available a xhb commercial with pcode 10 ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: fwh 10.01 and xhb commercial
Posted: Mon Feb 15, 2010 02:21 PM

Richard,

I also use xHarbour commercial and I don't have any problem.

Which version do you use ?

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: fwh 10.01 and xhb commercial
Posted: Mon Feb 15, 2010 02:46 PM

Antonio

For my main apps i use UESTUDIO and Borland with xharbour

This is an older app, at that time i used xhb commercial, i have some changes to do in this app, this is why i need to compile it today

My xhb commercial version is from september 2008, i do not plan to purchase an update from xhb.

i will convert it to Uestudio , i have to build some external libarries used by this app , but that's ok

Thanks for your help,

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: fwh 10.01 and xhb commercial
Posted: Mon Feb 15, 2010 06:55 PM

Richard,

We don't use xhb commercial here. I am sorry that we can not help you on this :-(

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion