Página 1 de 1

Error StdCall with MinGW

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

Error StdCall with MinGW

Publicado: Mié Mar 20, 2013 9:33 am
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

Error StdCall with MinGW

Publicado: Mié Mar 20, 2013 11:41 am
por emeasoft
And that was the problem Jose! Many thanks for the help! =)
Regards,
Juliano