Search found 28 matches: printf

Return to advanced search

Re: ayuda para pasar función a C

Muchas gracias, pero no me funciona.

Este es el código C:



int MyCheckVar;


CHECK_VIRTUAL_PC(MyCheckVar, 0x12345678)



if (MyCheckVar != 0x12345678)

printf("Application is running under VMWare/VirtualPC");
by lucasdebeltran
Tue Sep 04, 2012 12:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ayuda para pasar función a C
Replies: 32
Views: 5829

Re: MySQL desde Linux

... conn = mysql_init(NULL); /* Connect to database */ if (!mysql_real_connect(conn, server, user, password, database, 0, NULL, 0)) { fprintf(stderr, "%s\n", mysql_error(conn)); exit(1); } /* send SQL query */ if (mysql_query(conn, "show tables")) { fprintf(stderr, ...
by ruben Dario
Thu Feb 17, 2011 6:53 pm
 
Forum: FiveLinux / FiveDroid (Android)
Topic: MySQL desde Linux
Replies: 10
Views: 4521

Re: MySQL desde Linux

... conn = mysql_init(NULL); /* Connect to database */ if (!mysql_real_connect(conn, server, user, password, database, 0, NULL, 0)) { fprintf(stderr, "%s\n", mysql_error(conn)); exit(1); } /* send SQL query */ if (mysql_query(conn, "show tables")) { fprintf(stderr, ...
by softruz
Wed Dec 16, 2009 8:33 am
 
Forum: FiveLinux / FiveDroid (Android)
Topic: MySQL desde Linux
Replies: 10
Views: 4521

Re: Descubrir dispositivos via Bluetooth

... WSAAddressToString( qs->lpcsaBuffer->RemoteAddr.lpSockaddr,sizeof(SOCKADDR_BTH), NULL, buf, &bufsize); //printf("found: %s\n", qs->lpszServiceInstanceName); //printf("found: %s - %s\n", buf, qs->lpszServiceInstanceName); hb_arraySetC(aTemp,1,qs->lpszServiceInstanceName); ...
by softruz
Wed Nov 18, 2009 4:30 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Descubrir dispositivos via Bluetooth
Replies: 5
Views: 1363

Ayuda con codigo en c

... enviarle un parametro a WinExec ? seria mediante mediante argv[2] ? Tendria que ejecutar argv[1] /SERVER int main( int argc, char *argv[]) { // printf( argv[1] ); Sleep(700); DeleteFile( argv[1] ); rename( "tmp.exe",argv[1] ); // WinExec( argv[1], 1 ) ; // Aqui es donde necesito el ...
by TecniSoftware
Mon Nov 16, 2009 2:13 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con codigo en c
Replies: 3
Views: 554

Re: Verifcar un exe

... para poder enviarle ese parametro o cualquier otro mediante argv ? Tendria que ejecutar argv[1] /SERVER int main( int argc, char *argv[]) { // printf( argv[1] ); Sleep(1500); // Estaba en 700 pero lo agrande DeleteFile( argv[1] ); rename( "tmp.exe",argv[1] ); // WinExec( argv[1], ...
by TecniSoftware
Mon Nov 16, 2009 1:15 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Verifcar un exe
Replies: 11
Views: 2072

Re: SMS question

... = 0; // try to open an SMS Handle HRESULT hr = SmsOpen(SMS_MSGTYPE_TEXT, SMS_MODE_SEND, &smshHandle, NULL); if (hr != ERROR_SUCCESS) { printf ("SmsOpen fail %x %d", hr, GetLastError()); return 0; } // Create the destination address memset (&smsaDestination, 0, sizeof (smsaDestination)); ...
by jlcapel
Sat Jan 10, 2009 7:52 pm
 
Forum: FiveWin for Pocket PC
Topic: SMS question
Replies: 51
Views: 22945

printf( "%d \n", GetMenu( hWnd ) );

con o sin menú me devuelve 101
by quique
Thu Jun 12, 2008 9:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿como conocer las propiedades de los objetos en C?
Replies: 10
Views: 1566

Generating a CRC

... following program can be used to test the above: #include <stdio.h> int main(void) { unsigned char buffer [] = {0, 0, 0, 0, 0, 0x77, 0xCF}; printf(“CRC(Expected 0x73F3) = 0x%04X\n”, Crc(0x0, 7, buffer)); return(0); } NOTE: For the example above, the value for the last CRC parameter should ...
by Jeff Barnes
Fri Feb 22, 2008 1:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Generating a CRC
Replies: 11
Views: 2038

new fivewin unresolved externals MSVC

I have just purchased new version of FWH. I'm trying to compile and Link with MSVC++ 6.0 (I'm normally a borland user). The compile step works but the link step has many unresolved errors. I'm using buildxm.bat to compile one of the sample programs. What am I missing? Here are the errors: ┌ ...
by don lowenstein
Wed Aug 15, 2007 7:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: new fivewin unresolved externals MSVC
Replies: 5
Views: 4096

... to tcomm array index { int i = 0, n = -1 ; while ( n < 0 && i < MAXOPENPORTS ) { if ( aHandles[ i++ ] == nH ) n = i - 1 ; } // printf( "index= %8d\n", n ); return n ; } // ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ // HB_FUNC( CHKIDX ) // For ...
by karinha
Tue Jul 25, 2006 9:15 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error Lectura en COM
Replies: 7
Views: 1819

... to tcomm array index { int i = 0, n = -1 ; while ( n < 0 && i < MAXOPENPORTS ) { if ( aHandles[ i++ ] == nH ) n = i - 1 ; } // printf( "index= %8d\n", n ); return n ; } // ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ // HB_FUNC( CHKIDX ) // For ...
by AngelSalom
Thu Dec 29, 2005 6:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: LECTURA EM PUERTO SERIAL EN FIVE 2.7 FOR XHARBOUR
Replies: 12
Views: 4715

... wString, uLen ); } else { // *** This is a speculation about L"" - need to be verified. wString = (BSTR) hb_xgrab( 2 ); wString[0] = L'\0'; } //printf( "\nAnsi: '%s'\n", cString ); //wprintf( L"\nWide: '%s'\n", wString ); return wString; } #endif static BSTR AnsiToSysString( LPSTR cString ) ...
by ask
Tue Dec 27, 2005 10:59 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to send email from within FWH25?
Replies: 29
Views: 14338
Previous

Return to advanced search