Error StdCall with MinGW
Publicado: Mar Mar 19, 2013 6:38 pm
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
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