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
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.
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
Error StdCall with MinGW
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
> 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
Error StdCall with MinGW
And that was the problem Jose! Many thanks for the help! =)
Regards,
Juliano
Regards,
Juliano