hb_base64 link

Re: hb_base64 link

Postby Enrico Maria Giordano » Sun Sep 11, 2022 2:08 pm

Antonio Linares wrote:Dear Enrico,

We have the problem that xHarbour provides a LoadLibrary() and FreeLibrary() from rtl.lib and Harbour does not

How to solve this ? :-)


How did you solve it with BCC? I think you must do the same, or am I missing something?
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: hb_base64 link

Postby Enrico Maria Giordano » Sun Sep 11, 2022 3:06 pm

Talking about xHarbour, we just need a recompiled FWH lib with PRGs (you can call it fivehx32.lib, if you like this name). There is no need for a new fivehc32.lib, it is fine for xHarbour too.
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: hb_base64 link

Postby Enrico Maria Giordano » Sun Sep 11, 2022 3:15 pm

In harbour.prg there is this function only for xHarbour:

Code: Select all  Expand view
int _snprintf( char * s, size_t n, const char * format, ... )
{
   return hb_snprintf( s, n, format );
}


What is it for? It cannot be compiled with MSC2022:

Code: Select all  Expand view
harbour.prg(383): error C2084: function 'int _snprintf(char *const ,const size_t,const char *const ,...)' already has a body
e:\fw\temp\msc\include\ucrt\stdio.h(1939): note: see previous definition of '_snprintf'


Can you remove it?
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: hb_base64 link

Postby Antonio Linares » Sun Sep 11, 2022 11:04 pm

Enrico Maria Giordano wrote:
Antonio Linares wrote:Dear Enrico,

We have the problem that xHarbour provides a LoadLibrary() and FreeLibrary() from rtl.lib and Harbour does not

How to solve this ? :-)


How did you solve it with BCC? I think you must do the same, or am I missing something?


Dear Enrico,

The C compiler is not the issue. Harbour does not provide those functions, so FWH provides them.

But xHarbour provides them and then we have duplicates in FWH.

I guess we should move them into a PRG and don't include such PRG in FWH for xHarbour... but we use the same prgs.txt for all the makes...
regards, saludos

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

Re: hb_base64 link

Postby carlos vargas » Sun Sep 11, 2022 11:44 pm

Antonio, estas funciones LoadLibrary(), FreeLibrary(), DllCall/CallDll o de llamadas similares a funciones de dll (ahorta no recuerdo bien los nombres), al estar en xharbour y fwh complican la cosa!
ya hace tiempo vi esto, y no logre encontrar una solución. :-(
unas retorna un puntero y otras numericos long. en fin complejo el asunto.
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1720
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: hb_base64 link

Postby Giovany Vecchi » Mon Sep 12, 2022 3:28 am

Try putting these parameters:

/FORCE:MULTIPLE
SET HB_USER_LDFLAGS= /NODEFAULTLIB:msvcrt /MACHINE:X86 /nologo /subsystem:windows /INCREMENTAL:NO /ignore:4006 /MANIFEST:NO /FORCE:MULTIPLE
User avatar
Giovany Vecchi
 
Posts: 223
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Re: hb_base64 link

Postby Antonio Linares » Mon Sep 12, 2022 6:51 am

Dear Giovany,

We don't want to use /FORCE:MULTIPLE

thanks for the tip
regards, saludos

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

Re: hb_base64 link

Postby Enrico Maria Giordano » Mon Sep 12, 2022 7:40 am

Antonio Linares wrote:
Enrico Maria Giordano wrote:
Antonio Linares wrote:Dear Enrico,

We have the problem that xHarbour provides a LoadLibrary() and FreeLibrary() from rtl.lib and Harbour does not

How to solve this ? :-)


How did you solve it with BCC? I think you must do the same, or am I missing something?


Dear Enrico,

The C compiler is not the issue. Harbour does not provide those functions, so FWH provides them.

But xHarbour provides them and then we have duplicates in FWH.

I guess we should move them into a PRG and don't include such PRG in FWH for xHarbour... but we use the same prgs.txt for all the makes...


You successfully built FWH for xHarbour and BCC, right? And it has no problem with LoadLibrary() and FreeLibrary. So why the same libs for MSC should have any problems?

Anyway, (maybe there is something that I am missing) you can solve the problem with #ifdef __XHARBOUR__, can't you?
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: hb_base64 link

Postby Enrico Maria Giordano » Mon Sep 12, 2022 7:41 am

Please read the message about _snprintf(), please.
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: hb_base64 link

Postby Antonio Linares » Mon Sep 12, 2022 8:11 am

Enrico Maria Giordano wrote:Please read the message about _snprintf(), please.


Dear Enrico,

I already fixed it avoiding to include it when compiling with MSVC

thank you
regards, saludos

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

Re: hb_base64 link

Postby Antonio Linares » Mon Sep 12, 2022 8:13 am

Dear Enrico,

> you can solve the problem with #ifdef __XHARBOUR__, can't you?

going to check if we can wrap a pragma BEGINDUMP ENDDUMP using it
regards, saludos

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

Re: hb_base64 link

Postby Enrico Maria Giordano » Mon Sep 12, 2022 8:17 am

Antonio Linares wrote:
Enrico Maria Giordano wrote:Please read the message about _snprintf(), please.


Dear Enrico,

I already fixed it avoiding to include it when compiling with MSVC

thank you


Great, thank you! :-)
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: hb_base64 link

Postby Enrico Maria Giordano » Mon Sep 12, 2022 8:18 am

Antonio Linares wrote:Dear Enrico,

> you can solve the problem with #ifdef __XHARBOUR__, can't you?

going to check if we can wrap a pragma BEGINDUMP ENDDUMP using it


I dont know...
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 79 guests