Hi

Przemyslaw Czerpak-2 wrote:
> 
> hbwapi.h included by wvgwin.c seems to be missing.
> 

Ooops. I was experimenting something.
Can be commented out.

hbwapi.h will be extended as

#ifndef __HBWAPI_H

   #define __HBWAPI_H

   #include "hbapi.h"
   #include "hbapiitm.h"

   /*
       If we implement pointers than we need to return back pointers in all
       those functions which return a handle. My existing code checks for
the
       return values and compare it against some numeric. So for time being
       I am deferring the use of pointers till we come up with a common
solution.

       #define wapi_par_WPARAM( n )    ( ( WPARAM ) ( ISNUM( n ) ? (
HB_PTRDIFF ) hb_parnint( n ) : hb_parptr( n ) ) )
   */

   #define wapi_par_WNDPROC( n )   ( ( WNDPROC   ) ( HB_PTRDIFF )
hb_parnint( n ) )
   #define wapi_par_WPARAM( n )    ( ( WPARAM    ) ( HB_PTRDIFF )
hb_parnint( n ) )
   #define wapi_par_LPARAM( n )    ( ( LPARAM    ) ( HB_PTRDIFF )
hb_parnint( n ) )

   #define wapi_par_HWND( n )      ( ( HWND      ) ( HB_PTRDIFF )
hb_parnint( n ) )
   #define wapi_par_HDC( n )       ( ( HDC       ) ( HB_PTRDIFF )
hb_parnint( n ) )
   #define wapi_par_HANDLE( n )    ( ( HANDLE    ) ( HB_PTRDIFF )
hb_parnint( n ) )
   #define wapi_par_HGDIOBJ( n )   ( ( HGDIOBJ   ) ( HB_PTRDIFF )
hb_parnint( n ) )
   #define wapi_par_HBITMAP( n )   ( ( HBITMAP   ) ( HB_PTRDIFF )
hb_parnint( n ) )
   #define wapi_par_HFONT( n )     ( ( HFONT     ) ( HB_PTRDIFF )
hb_parnint( n ) )
   #define wapi_par_HINSTANCE( n ) ( ( HINSTANCE ) ( HB_PTRDIFF )
hb_parnint( n ) )

   #define wapi_par_COLORREF( n )  ( ( COLORREF  ) ( HB_PTRDIFF )
hb_parnint( n ) )
   #define wapi_par_STRUCT( n )    ( hb_parc( n ) )

   #define wapi_ret_HANDLE( n )    ( hb_retnint( ( HB_PTRDIFF ) n ) )
   #define wapi_ret_HRESULT( hr )  ( hb_retnint( ( HB_PTRDIFF ) hr ) )


#endif //__HBWAPI_H



I propose to place it in harbour/include, right?

I will be commenting out hbwapi.h in wvgwin.c.

Regards
Pritpal Bedi

-- 
View this message in context: 
http://www.nabble.com/SF.net-SVN%3A-harbour-project%3A-10241--trunk-harbour-tp21968021p21968608.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to