Search found 120 matches: sizeof

Return to advanced search

Re: Ayuda C++ : SOLUCIONADO

... HB_FUNC_STATIC( STARTDOC ) { HDC hDC = (HDC) hb_parnl(1) ; LPDOCINFO sDoc = NULL; BOOL Result = FALSE ; if (hDC ) { sDoc = (LPDOCINFO) hb_xgrab(sizeof(DOCINFO)); sDoc->cbSize= sizeof(DOCINFO) ; sDoc->lpszDocName= hb_parc(2) ; sDoc->lpszOutput = hb_parc(3) ; sDoc->lpszDatatype= NULL ...
by russimicro
Fri Apr 19, 2024 9:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda C++ : SOLUCIONADO
Replies: 12
Views: 325

Re: App Termination and Relaunch.

... `CreateProcess`: ```cpp #include <Windows.h> int main() { // Terminate the current instance // Relaunch the application STARTUPINFO si = { sizeof(STARTUPINFO) }; PROCESS_INFORMATION pi; if (CreateProcess(NULL, L"your_app.exe", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) ...
by Antonio Linares
Fri Oct 06, 2023 6:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: App Termination and Relaunch.
Replies: 5
Views: 398

Re: List of COM Port

... ports, then modify this line to check how the function works: // return GetDefaultCommConfig( buffer, &CommConfig, &size ) || size > sizeof( COMMCONFIG ); return TRUE; shark.prg #include "FiveWin.ch"function Main()   XBrowser( FW_ComPorts() )return ...
by Antonio Linares
Sat Dec 29, 2018 9:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: List of COM Port
Replies: 8
Views: 1176

Saber Ip Publico

... szRead[128], szRet[256]; char szSite[] = "http://checkip.dyndns.org/Current IP Check.htm"; char *Token; char *cRet; memset(szPath,0,sizeof(szPath)); memset(szRet,0,sizeof(szRet)); GetTempPath(256, szPath); strcat(szPath, "my_ip.txt"); if( URLDownloadToFile(0, szSite, szPath, ...
by Busmatic_wpb
Fri Dec 07, 2018 2:12 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber Ip Publico
Replies: 1
Views: 607

Re: c++ STRUCTURE data types

... AS LPSTR MEMBER lpszCertStore AS LPSTR MEMBER lpszCertName AS LPSTR MEMBER lpszKeyFile AS LPSTR ENDSTRUCT oCredentials:dwSize = oCredentials:SizeOf() oCredentials:lpszCertStore = cCertStore oCredentials:lpszCertName = cCertName INetConnect( ..., ..., ..., ..., ..., @oCredentials:cBuffer ) ...
by Antonio Linares
Wed Jul 18, 2018 8:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: c++ STRUCTURE data types
Replies: 3
Views: 699

Declaration was expected in function DECLARE_HANDLE

... "hbvm.h" #include "hbapirdd.h" #include "hbxvm.h" HB_FUNC( ISEXE64 ) // Check if our app is 64 bits { hb_retl( ( sizeof( void * ) == 8 ) ); } #pragma ENDDUMP
by KRCNET
Mon Jun 18, 2018 11:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Declaration was expected in function DECLARE_HANDLE
Replies: 1
Views: 548

Re: Ports to 485 with converter USB, please help.

... tcsetattr(fd, TCSANOW, &ti); // Set the new serial config // Send buffer_to_send content to RS485 if (write(fd, buffer_to_send, sizeof(buffer_to_send)) != sizeof(buffer_to_send)) { printf("ERROR! write() failed \r\n"); } ti_prev.c_cflag &= ~HUPCL; // This to release ...
by Busmatic_wpb
Thu Feb 08, 2018 3:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ports to 485 with converter USB, please help.
Replies: 7
Views: 1424

Re: lectura de un DLL - EJEMPLO en Delphi

... RetVar : cardinal; RContext : cardinal; RStates : array[0..1] of SCARD_READERSTATEA; begin try RContext := cardinal(PContext^); FillChar(RStates,SizeOf(RStates),#0); RStates[0].szReader := SelectedReader; //Es un puntero al nombre del lector que hayas seleccionado RStates[0].pvUserData := nil; ...
by Busmatic_wpb
Sat Aug 05, 2017 8:35 pm
 
Forum: FiveWin para CA-Clipper
Topic: lectura de un DLL -
Replies: 5
Views: 2613

lectura de un DLL -

... short pn; unsigned char sad; unsigned char dad; // REQUEST ICC unsigned char command[] = { 0x20, 0x12, 0x01, 0x00, 0x00 }; unsigned short lenc = sizeof(command); unsigned char response[300]; unsigned short lenr = sizeof(response); unsigned short i; ctn = 1; pn = 1; // Initialize card terminal ...
by Busmatic_wpb
Thu Aug 03, 2017 1:27 am
 
Forum: FiveWin para CA-Clipper
Topic: lectura de un DLL -
Replies: 5
Views: 2613

Re: GetAdaptersInfo ¿DLL32 FUNCION o BEGINDUMP/ENDDUMP?

Si ejecutas este programa de ejemplo en 32bits el Sizeof te devuelve 40 bytes y en 64bits te devuelve 48 bytes. Las variables que se duplican son las de tipo DWORD/LONG o puntero(*) que son LONG también. function main()   MsgInfo(ESTRUCTURA())return ...
by JmGarcia
Thu Mar 24, 2016 11:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: GetAdaptersInfo ¿DLL32 FUNCION o BEGINDUMP/ENDDUMP?
Replies: 12
Views: 2175

Re: GetAdaptersInfo ¿DLL32 FUNCION o BEGINDUMP/ENDDUMP?

JM,

Sería mas sencillo que devolvieses un array.

Si quieres devolver una cadena entonces tienes que usar hb_retclen( ( char * ) pAdapterInfo, sizeof (IP_ADAPTER_INFO) );
by Antonio Linares
Tue Mar 22, 2016 9:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: GetAdaptersInfo ¿DLL32 FUNCION o BEGINDUMP/ENDDUMP?
Replies: 12
Views: 2175

Re: GetAdaptersInfo ¿DLL32 FUNCION o BEGINDUMP/ENDDUMP?

... estructura diseñada en FWH/(x)Harbour return #pragma BEGINDUMP HB_FUNC( GETADAPTERSINFO ) { PIP_ADAPTER_INFO pAdapterInfo = NULL; DWORD dwBufLen = sizeof (IP_ADAPTER_INFO) ; DWORD dwError = GetAdaptersInfo(pAdapterInfo,&dwBufLen); FREE(pAdapterInfo); pAdapterInfo = (IP_ADAPTER_INFO *) MALLOC(dwBufLen); ...
by JmGarcia
Tue Mar 22, 2016 9:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: GetAdaptersInfo ¿DLL32 FUNCION o BEGINDUMP/ENDDUMP?
Replies: 12
Views: 2175

Re: Problem with Vtaskbar of Paco

...  endif   hOldFont   := SelectObject(  hDC, hFont ) the function is this HB_FUNC( CREAFCAPT ) { NONCLIENTMETRICS info; info.cbSize = sizeof(info); SystemParametersInfo( SPI_GETNONCLIENTMETRICS, sizeof(info), &info, 0 ); hb_retnl( (LONG ) CreateFontIndirect( &info.lfCaptionFont ...
by Silvio.Falconi
Mon Jan 25, 2016 12:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with Vtaskbar of Paco
Replies: 1
Views: 453

Re: HowTo ADS from (x)Harbour

... UNSIGNED8 pucFormat[ 16 ]; UNSIGNED16 pusLen = 16; la otra que uso yo HB_FUNC( ADSSETDATEFORMAT ) { UNSIGNED8 pucFormat[ 16 ]; UNSIGNED16 usLen = sizeof( pucFormat ); la que uso HB_BOOL hb_ads_bOEM = HB_FALSE; la otra BOOL hb_ads_bOEM = FALSE; HB_FUNC( ADSENABLEENCRYPTION ) { const char * pucPassword ...
by Patricio Avalos Aguirre
Sun Nov 08, 2015 2:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: HowTo ADS from (x)Harbour
Replies: 14
Views: 3121

Re: XBrowse, ajustar aspecto de las barras de scroll

Intenta en minúsculas: sizeof( mi )
by cnavarro
Wed Jul 08, 2015 10:01 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBrowse, ajustar aspecto de las barras de scroll*Solucionado
Replies: 38
Views: 6477
Next

Return to advanced search