Página 1 de 1

Xailer 2 Beta June 2009 - I need help

Publicado: Jue Jun 18, 2009 11:31 am
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

Xailer 2 Beta June 2009 - I need help

Publicado: Jue Jun 18, 2009 11:40 am
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
>

Xailer 2 Beta June 2009 - I need help

Publicado: Jue Jun 18, 2009 11:40 am
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
>

Xailer 2 Beta June 2009 - I need help

Publicado: Jue Jun 18, 2009 1:16 pm
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
>>
>
>

Xailer 2 Beta June 2009 - I need help

Publicado: Jue Jun 18, 2009 1:16 pm
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
>>
>
>