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.

Error StdCall with MinGW

Xailer professional forum in English
Responder
Avatar de Usuario
emeasoft
Mensajes: 1094
Registrado: Mié Abr 01, 2009 4:12 pm
Ubicación: emeasoft
Contactar:

Error StdCall with MinGW

Mensaje por emeasoft »

Hello xailers,
I an trying to solve this problem that appeared when I try to compile my project with MinGW...
Quote:
warning: '__stdcall__' attribute only applies to function types [-Wattributes]

The error happens here:
Quote:
HB_FUNC( CAPTUREWIN )
{
HWND VFWAPI hVentana = capCreateCaptureWindow( hb_parc( 1 ), (DWORD) hb_parnl( 2 ),
hb_parni( 3 ) ,hb_parni( 4 ),hb_parni( 5 ),hb_parni( 6 ),
(HWND) hb_parnl( 7 ), hb_parni( 8 ) ) ;
hb_retnl( (LONG) hVentana ) ;
}

Anyone knows a solution?
TIA,
Juliano
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Error StdCall with MinGW

Mensaje por jfgimenez »

Juliano,
> Hello xailers,
> I an trying to solve this problem that appeared when I try
> to compile my project with MinGW...
>
> Quote:
>> warning: '__stdcall__' attribute only applies to
>> function types [-Wattributes]
>
>
> The error happens here:
>
> Quote:
>> HB_FUNC( CAPTUREWIN ) {
>>
>> HWND VFWAPI hVentana = capCreateCaptureWindow(
>> hb_parc( 1 ), (DWORD) hb_parnl( 2 ),
>> hb_parni( 3 ) ,hb_parni( 4
>> ),hb_parni( 5 ),hb_parni( 6 ),
>> (HWND) hb_parnl( 7 ),
>> hb_parni(8) ) ;
>> hb_retnl( (LONG) hVentana ) ;
>> }
>
>
> Anyone knows a solution?
I'm not sure, because you aren't providing a self-contained sample to
test, but I suspect that the only thing you need to do is to delete the
word VFWAPI from your code.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
emeasoft
Mensajes: 1094
Registrado: Mié Abr 01, 2009 4:12 pm
Ubicación: emeasoft
Contactar:

Error StdCall with MinGW

Mensaje por emeasoft »

And that was the problem Jose! Many thanks for the help! =)
Regards,
Juliano
Responder