In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Xailer 2 Beta June 2009 - I need help

Xailer professional forum in English
Responder
Ingo JH
Mensajes: 358
Registrado: Lun Dic 10, 2007 5:10 pm

Xailer 2 Beta June 2009 - I need help

Mensaje por Ingo JH »

on the previous Xailer 2 release this code was compiled witout any problem
//---------------------------------------------------------- --------------------
#pragma BEGINDUMP
#include <windows.h>
#include <xailer.h>
XA_FUNC_STATIC( MCISENDSTRING )
{
hb_retnl( mciSendString( hb_parc( 1 ), NULL, hb_parnl( 3 ), (HWND)
hb_parnl( 4 ) ) );
}
#pragma ENDDUMP
//---------------------------------------------------------- --------------------
Now I get the warning message
Warning W8070 : Function should return a value in function XA_FUNC_STATIC
Warning W8057 : Parameter 'MCISENDSTRING' is never used in function
XA_FUNC_STATIC
What in this code I have to change that the new release accept it?
Thanks in advance
Ingo
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Xailer 2 Beta June 2009 - I need help

Mensaje por ignacio »

Ingo,
Change XA_FUNC_STATIC with HB_FUNC_STATIC. That's all.
Regards,
Note: This modification needed to be done in order to use low level static
funtions inside of DLLs. Is a limitation of xHarbour.
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Ingo" <support@mandantwin.com> escribió en el mensaje
news:4a3a0973$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> on the previous Xailer 2 release this code was compiled witout any problem
>
> //---------------------------------------------------------- --------------------
> #pragma BEGINDUMP
> #include <windows.h>
> #include <xailer.h>
>
> XA_FUNC_STATIC( MCISENDSTRING )
> {
> hb_retnl( mciSendString( hb_parc( 1 ), NULL, hb_parnl( 3 ), (HWND)
> hb_parnl( 4 ) ) );
> }
>
> #pragma ENDDUMP
> //---------------------------------------------------------- --------------------
>
> Now I get the warning message
>
> Warning W8070 : Function should return a value in function XA_FUNC_STATIC
> Warning W8057 : Parameter 'MCISENDSTRING' is never used in function
> XA_FUNC_STATIC
>
> What in this code I have to change that the new release accept it?
>
> Thanks in advance
>
> Ingo
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Xailer 2 Beta June 2009 - I need help

Mensaje por ignacio »

Ingo,
Change XA_FUNC_STATIC with HB_FUNC_STATIC. That's all.
Regards,
Note: This modification needed to be done in order to use low level static
funtions inside of DLLs. Is a limitation of xHarbour.
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Ingo" <support@mandantwin.com> escribió en el mensaje
news:4a3a0973$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> on the previous Xailer 2 release this code was compiled witout any problem
>
> //---------------------------------------------------------- --------------------
> #pragma BEGINDUMP
> #include <windows.h>
> #include <xailer.h>
>
> XA_FUNC_STATIC( MCISENDSTRING )
> {
> hb_retnl( mciSendString( hb_parc( 1 ), NULL, hb_parnl( 3 ), (HWND)
> hb_parnl( 4 ) ) );
> }
>
> #pragma ENDDUMP
> //---------------------------------------------------------- --------------------
>
> Now I get the warning message
>
> Warning W8070 : Function should return a value in function XA_FUNC_STATIC
> Warning W8057 : Parameter 'MCISENDSTRING' is never used in function
> XA_FUNC_STATIC
>
> What in this code I have to change that the new release accept it?
>
> Thanks in advance
>
> Ingo
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Ingo JH
Mensajes: 358
Registrado: Lun Dic 10, 2007 5:10 pm

Xailer 2 Beta June 2009 - I need help

Mensaje por Ingo JH »

Ignacio,
ok I understand.
Thank you
Ingo
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> schrieb im
Newsbeitrag news:4a3a0b79$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Ingo,
>
> Change XA_FUNC_STATIC with HB_FUNC_STATIC. That's all.
>
> Regards,
>
> Note: This modification needed to be done in order to use low level static
> funtions inside of DLLs. Is a limitation of xHarbour.
>
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Ingo" <support@mandantwin.com> escribió en el mensaje
> news:4a3a0973$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> on the previous Xailer 2 release this code was compiled witout any
>> problem
>>
>> //---------------------------------------------------------- --------------------
>> #pragma BEGINDUMP
>> #include <windows.h>
>> #include <xailer.h>
>>
>> XA_FUNC_STATIC( MCISENDSTRING )
>> {
>> hb_retnl( mciSendString( hb_parc( 1 ), NULL, hb_parnl( 3 ), (HWND)
>> hb_parnl( 4 ) ) );
>> }
>>
>> #pragma ENDDUMP
>> //---------------------------------------------------------- --------------------
>>
>> Now I get the warning message
>>
>> Warning W8070 : Function should return a value in function XA_FUNC_STATIC
>> Warning W8057 : Parameter 'MCISENDSTRING' is never used in function
>> XA_FUNC_STATIC
>>
>> What in this code I have to change that the new release accept it?
>>
>> Thanks in advance
>>
>> Ingo
>>
>
>
Ingo JH
Mensajes: 358
Registrado: Lun Dic 10, 2007 5:10 pm

Xailer 2 Beta June 2009 - I need help

Mensaje por Ingo JH »

Ignacio,
ok I understand.
Thank you
Ingo
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> schrieb im
Newsbeitrag news:4a3a0b79$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Ingo,
>
> Change XA_FUNC_STATIC with HB_FUNC_STATIC. That's all.
>
> Regards,
>
> Note: This modification needed to be done in order to use low level static
> funtions inside of DLLs. Is a limitation of xHarbour.
>
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Ingo" <support@mandantwin.com> escribió en el mensaje
> news:4a3a0973$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> on the previous Xailer 2 release this code was compiled witout any
>> problem
>>
>> //---------------------------------------------------------- --------------------
>> #pragma BEGINDUMP
>> #include <windows.h>
>> #include <xailer.h>
>>
>> XA_FUNC_STATIC( MCISENDSTRING )
>> {
>> hb_retnl( mciSendString( hb_parc( 1 ), NULL, hb_parnl( 3 ), (HWND)
>> hb_parnl( 4 ) ) );
>> }
>>
>> #pragma ENDDUMP
>> //---------------------------------------------------------- --------------------
>>
>> Now I get the warning message
>>
>> Warning W8070 : Function should return a value in function XA_FUNC_STATIC
>> Warning W8057 : Parameter 'MCISENDSTRING' is never used in function
>> XA_FUNC_STATIC
>>
>> What in this code I have to change that the new release accept it?
>>
>> Thanks in advance
>>
>> Ingo
>>
>
>
Responder