Search found 14 matches: nhex

Return to advanced search

Re: HEX color to INT value

The difference is this: Windows COLORREF constants, when expressed in hex are 0xBBGGRR If we have such a color string "BBGGRR" then nHex( cHex ) or HEXTONUM( cHex ) would convert the hex string to numeric value. Mostly in web and other platforms colors are expressed as "#RRGGBB" ...
by nageswaragunupudi
Tue Dec 25, 2018 8:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HEX color to INT value
Replies: 10
Views: 1904

Re: HEX color to INT value

There is also:

function nHex( cHex ) --> nValue
by Antonio Linares
Tue Dec 25, 2018 8:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HEX color to INT value
Replies: 10
Views: 1904

Rutina para leer Gps

... 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 ] ; if ( bChar >= 97 ) bChar -= 39; // lowercase if ( bChar >= 65 ) bChar -= 7 ; // uppercase ...
by Busmatic_wpb
Sat Jul 22, 2017 1:10 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Rutina para leer Gps
Replies: 1
Views: 961

Test GPS Error en encontrado

... 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 ] ; if ( bChar >= 97 ) bChar -= 39; // lowercase if ( bChar >= 65 ) bChar -= 7 ; // uppercase ...
by Busmatic_wpb
Fri Jul 21, 2017 11:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Test GPS Error en encontrado
Replies: 0
Views: 642

Re: Resolucion en pantalla

... 768) ENDIf RETURN nil //***************************************************************** Function CamReso(nAncho, nAlto) Local DM_PELSWIDTH := nHex("80000") Local DM_PELSHEIGHT := nHex("100000") //Local DM_PELSWIDTH := nHex("100000") //Local DM_PELSHEIGHT := nHex("160000") ...
by russimicro
Thu Aug 13, 2015 1:25 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Resolucion en pantalla
Replies: 7
Views: 2568

Re: CAMBIO RESOLUCION PANTALLA

... MSGINFO('HECHO. AQUI PUEDES INICIAR TU PROGRAMA ELABORADO PARA 800 X 600') ENDI RETU nil Function CamReso(nAncho, nAlto) Local DM_PELSWIDTH := nHex("80000") Local DM_PELSHEIGHT := nHex("100000") Local oDevMode Local lPosible Local cBuffer Local lCamReso := .f. DEFAULT nAncho ...
by Maggiro
Sat Apr 19, 2014 9:00 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CAMBIO RESOLUCION PANTALLA
Replies: 28
Views: 8606

Re: Se necesita ayuda en el wiki !

... NDdeShareSetInfo() nDlgBox() NextDlgTabItem() nExtMem() nFileCrc() nGetBackRgb() nGetFileFilter() nGetFilter32() nGetForeRGB() nHex() nHiByte() nHiWord() nIcons() nLoByte() nLoWord() nMakeLong() nMciOpen() nMciPlay() nMciWindow() nMidiDevices() nMsgBox() nNot() nOr() nRandom() ...
by Cgallegoa
Sun Feb 21, 2010 10:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5494

... que no te respondí en tiempo y forma pero tuve algunos inconvenientes con mi proveedor de internet. Aqui te mando el código #define DM_PELSWIDTH nHex("80000") #define DM_PELSHEIGHT nHex("100000") Function CambiaResolucion( nAncho, nAlto, lPreguntar) Local oDevMode Local lPosible Local cBuffer ...
by jaba
Mon Oct 27, 2008 11:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ajustar resolucion
Replies: 10
Views: 2726

... que no te respondí en tiempo y forma pero tuve algunos inconvenientes con mi proveedor de internet. Aqui te mando el código #define DM_PELSWIDTH nHex("80000") #define DM_PELSHEIGHT nHex("100000") Function CambiaResolucion( nAncho, nAlto, lPreguntar) Local oDevMode Local lPosible Local cBuffer ...
by horacio
Mon Oct 27, 2008 2:58 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ajustar resolucion
Replies: 10
Views: 2726

... #Include "dll.ch" #Include "Struct.ch" Function CamReso(nAncho, nAlto, lPreguntar) Local DM_PELSWIDTH := nHex("80000") Local DM_PELSHEIGHT := nHex("100000") Local oDevMode Local lPosible Local cBuffer Local lCamReso := .f. DEFAULT nAncho := GetSysMetrics(0), ...
by Manuel Valdenebro
Fri Feb 08, 2008 9:38 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: CAMBIO RESOLUCION PANTALLA
Replies: 28
Views: 8606

... := 32 Local CCFORMNAME := 32 Local EWX_LOGOFF := 0 Local EWX_SHUTDOWN := 1 Local EWX_REBOOT := 2 Local EWX_FORCE := 4 Local DM_BITSPERPEL := nHex("40000") // &H40000 // 4*16^4 // 262144 Local DM_PELSWIDTH := nHex("80000") // &H80000 // 8*16^4 // 524288 Local DM_PELSHEIGHT := nHex("100000") ...
by horacio
Wed Feb 06, 2008 10:15 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CAMBIO RESOLUCION PANTALLA
Replies: 28
Views: 8606

Gustavo,

ComandoCEm( nhex( "101" ) )
by Antonio Linares
Thu Mar 30, 2006 9:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: transfer var type Hexadecimal
Replies: 3
Views: 742

... 1 ) devuelve un valor de tipo LONG? Seria entonces que un Hexadecimal se lo puede almacenar en un dato de tipo LONG? Como ser: ComandoCEm(nhex( 101 ) ) ... Al hacer esto: LONG lValue = hb_parnl( 1 ); lValue guardaria el 65 ( que es el valor hexadecimal del decimal 101 ) Es asi?
by goosfancito
Thu Mar 30, 2006 7:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: transfer var type Hexadecimal
Replies: 3
Views: 742

Comandocem( nHex( cHex ) )

and from Comandocem():

LONG lValue = hb_parnl( 1 );
by Antonio Linares
Thu Mar 30, 2006 7:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: transfer var type Hexadecimal
Replies: 3
Views: 742

Return to advanced search