Search found 25 matches: lpbyte

Return to advanced search

Re: *** Curso de C para programadores Harbour.

... the DEVMODE GetPrinter( m_hPrinter, 2, NULL, 0, &dw ); pi2 = (PRINTER_INFO_2 *)GlobalAllocPtr( GHND, dw ); GetPrinter( m_hPrinter, 2, (LPBYTE)pi2, dw, &dw ); // set the new printer info structure pi2->pDevMode = lpDevMode; SetPrinter( m_hPrinter, 2, (LPBYTE)pi2, 0 ); GlobalFreePtr( ...
by Otto
Mon Jul 12, 2021 8:30 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: *** Curso de C para programadores Harbour.
Replies: 141
Views: 25636

Re: SetLandscape

... the DEVMODE GetPrinter( m_hPrinter, 2, NULL, 0, &dw ); pi2 = (PRINTER_INFO_2 *)GlobalAllocPtr( GHND, dw ); GetPrinter( m_hPrinter, 2, (LPBYTE)pi2, dw, &dw ); // set the new printer info structure pi2->pDevMode = lpDevMode; SetPrinter( m_hPrinter, 2, (LPBYTE)pi2, 0 ); GlobalFreePtr( ...
by Otto
Mon Jun 14, 2021 7:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SetLandscape
Replies: 11
Views: 1634

Rutina para leer Gps

... BEGINDUMP #include <windows.h> #include <math.h> #include <hbapi.h> // funcion de FW adaptada a FWPPC HB_FUNC (HEXTODEC) { LPBYTE pString = ( LPBYTE ) hb_parc( 1 ); WORD w = 0, wLen = hb_parclen( 1 ); BYTE bChar; LONG nHex = 0; while( w < wLen ) { bChar = pString[ w ] ...
by Busmatic_wpb
Sat Jul 22, 2017 1:10 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Rutina para leer Gps
Replies: 1
Views: 1035

Test GPS Error en encontrado

... BEGINDUMP #include <windows.h> #include <math.h> #include <hbapi.h> // funcion de FW adaptada a FWPPC HB_FUNC (HEXTODEC) { LPBYTE pString = ( LPBYTE ) hb_parc( 1 ); WORD w = 0, wLen = hb_parclen( 1 ); BYTE bChar; LONG nHex = 0; while( w < wLen ) { bChar = pString[ w ] ...
by Busmatic_wpb
Fri Jul 21, 2017 11:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Test GPS Error en encontrado
Replies: 0
Views: 669

Re: convert C to fivewin

... // DWORD CEFRead(unsigned char *lpMemArea, LPDWORD pdwByteRead, LPDWORD lpdwSysError); HB_FUNC( CEFREAD ) { DWORD dwByteRead; hb_retnl( CEFRead( (LPBYTE)hb_parnl(1) , &dwByteRead , &dwSysError ) ); } // DWORD CEFWrite(unsigned char *lpCommand, LPDWORD lpdwSysError); HB_FUNC( CEFWRITE ) ...
by vensanto
Thu May 25, 2017 1:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: convert C to fivewin
Replies: 14
Views: 2750

Re: convert C to fivewin

IMO, this should be this way:

// DWORD CEFRead(unsigned char *lpMemArea, LPDWORD pdwByteRead, LPDWORD lpdwSysError);
HB_FUNC( CEFREAD )
{
DWORD dwByteRead, dwSysError;

hb_retnl( CEFRead( ( LPBYTE ) hb_parnl(1) , &dwByteRead, &dwSysError ) );
}
by Antonio Linares
Thu May 25, 2017 7:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: convert C to fivewin
Replies: 14
Views: 2750

Re: convert C to fivewin

... // DWORD CEFRead(unsigned char *lpMemArea, LPDWORD pdwByteRead, LPDWORD lpdwSysError); HB_FUNC( CEFREAD ) { DWORD dwSysError; hb_retnl( CEFRead( (LPBYTE)hb_parc(1) , (LPDWORD)hb_parc(2) , &dwSysError ) ); } // DWORD CEFWrite(unsigned char *lpCommand, LPDWORD lpdwSysError); HB_FUNC( CEFWRITE ...
by vensanto
Wed May 24, 2017 6:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: convert C to fivewin
Replies: 14
Views: 2750

Tengo un mensqje de error en bcc582

... #else #define WINCOMMCTRLAPI #endif #endif // WINCOMMCTRLAPI #ifndef CCSIZEOF_STRUCT #define CCSIZEOF_STRUCT(structname, member) (((int)((LPBYTE)(&((structname*)0)->member) - ((LPBYTE)((structname*)0)))) + sizeof(((structname*)0)->member)) #endif // // For compilers that don't ...
by Armando Picon
Thu Aug 14, 2014 12:08 am
 
Forum: EasyReport, EasyDialog y EasyPreview
Topic: Tengo un mensqje de error en bcc582
Replies: 2
Views: 1765

Re: Compile tbfuncs.c

... ; Error E2139 \fw21\fwh_8\include\ClipApi.h 80: Declaration missing ; Error E2238 \fw21\fwh_8\include\ClipApi.h 81: Multiple declaration for 'LPBYTE' Error E2344 \fw21\fwh_8\include\ClipApi.h 80: Earlier declaration of 'LPBYTE' Error E2139 \fw21\fwh_8\include\ClipApi.h 81: Declaration missing ...
by AHF
Thu Feb 09, 2012 9:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Compile tbfuncs.c
Replies: 9
Views: 2889

Sintax de EnumJobs

... MEMBER DesiredAccess AS DWORD // ACCESS_MASK MEMBER pFirstJob AS DWORD MEMBER pNoJobs AS DWORD MEMBER pLevel AS DWORD MEMBER pJob AS DWORD // LPBYTE MEMBER pcbBuf AS DWORD MEMBER pcbNeeded AS DWORD // LPDWORD MEMBER pcReturned AS DWORD //BOOL // LPDWORD ENDSTRUCT oPrnDefaults:DesiredAccess ...
by SENUN
Tue Nov 01, 2011 2:18 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sintax de EnumJobs
Replies: 1
Views: 683

Funcion PrepareInfoHeader

... )&bmiD, DIB_RGB_COLORS, ( void ** )&lpDesBits, 0, 0 ); hbmOldDes = SelectObject( dcDes, hbmDes ); for( j = 0; j < bm.bmHeight; ++j ) { LPBYTE pbDestRGB = ( LPBYTE )&( ( DWORD * ) lpDesBits )[ j * bm.bmWidth ]; LPBYTE pbSrcRGB = ( LPBYTE )&( ( DWORD * ) lpSrcBits )[ j * bm.bmWidth ...
by softruz
Thu May 19, 2011 11:25 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funcion PrepareInfoHeader
Replies: 7
Views: 1200

error compiling tcbfunc.c with VC++ express 2010

... : incorrect return type for intrinsic function, expected 'unsigned int' c:\dvl\fwh\include\ClipApi.h(464) : warning C4391: 'void strcpy(LPBYTE,LPBYTE)' : incorrect return type for intrinsic function, expected 'char' c:\dvl\fwh\include\ClipApi.h(511) : warning C4431: missing type specifier ...
by l.f.
Sat Feb 12, 2011 9:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: error compiling tcbfunc.c with VC++ express 2010
Replies: 1
Views: 826

error al compilar winsock de smtp luis

... #ifdef __HARBOUR__ HARBOUR HB_FUN_RECV( PARAMS ) // nSocket --> cResult #else CLIPPER RECV( PARAMS ) // nSocket --> cResult #endif { LPBYTE buffer = ( LPBYTE ) _xgrab( 8192 ); WORD wLen = recv( _parni( 1 ), ( char * ) buffer, 8192, 0 ); if( wLen < 10000 ) // socket errors = 10000 ...
by MANOLO
Thu Feb 19, 2009 7:20 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: error al compilar winsock de smtp luis
Replies: 2
Views: 883

Api-Function

... LPTSTR lpValueName, // value buffer LPDWORD lpcValueName, // size of value buffer LPDWORD lpReserved, // reserved LPDWORD lpType, // type buffer LPBYTE lpData, // data buffer LPDWORD lpcbData // size of data buffer ); Parameters hKey [in] Handle to a currently open key or one of the following ...
by ukoenig
Thu Sep 25, 2008 8:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: RegEnumValue - Win98
Replies: 3
Views: 913

... // ( hwnd, index, lDelete ) { PCLIPVAR p = (PCLIPVAR) SendMessage( (HWND) _parnl( 1 ), LB_GETITEMDATA, _parni( 2 ), 0 ); #ifndef __FLAT__ _bcopy( (LPBYTE) _eval, (LPBYTE) p, sizeof(CLIPVAR) ); #else #endif if( (BOOL) _parl( 3 ) ) hb_gcGripDrop( p ); } HARBOUR HB_FUN_LBGETRECT() // ( hwnd, nIndex ...
by alex_cyr
Sat Jul 26, 2008 5:51 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: error al compilar TREEDRAW.C
Replies: 6
Views: 1622
Next

Return to advanced search