Search found 28 matches: printf

Return to advanced search

Re: Conectarse con mariaDB

... *database = "your_database"; // Connect to MySQL if (mysql_real_connect(conn, host, user, password, database, 0, NULL, 0) == NULL) { fprintf(stderr, "Error connecting to MySQL: %s\n", mysql_error(conn)); mysql_close(conn); exit(EXIT_FAILURE); } // Execute a simple query if ...
by Antonio Linares
Mon Jan 01, 2024 2:55 pm
 
Forum: FiveMac / FivePhone (iPhone, iPad)
Topic: Conectarse con mariaDB
Replies: 4
Views: 9901

Re: Concatenar 2 string en MSVC

... despues ya que la funcion creo recordar que retorna un puntero a la cadena ampliada, esto es interesante ya que te permite pasarla a la funcion printf directamente. Ah supongo que incluyes la cabecera string.h     char destino[] = "Saludos ";    char origen[] = "amigos ...
by jvtecheto
Fri Jul 08, 2022 7:44 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Concatenar 2 string en MSVC
Replies: 3
Views: 337

Re: help on a GPF situation

... tracing in Harbour. TRACING ======= Harbour implements tracing by adding calls to the following macro in the C code: HB_TRACE( level, ( "printf-style parameters", arg1, arg2 ) ); The level specified for the HB_TRACE call affects Harbour in two ways: compilation time and run time. ...
by Antonio Linares
Sat Oct 23, 2021 4:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: help on a GPF situation
Replies: 26
Views: 3372

Re: Make para BCC10

... program. Here is the source code of a file called simple.cpp that I wrote in the text editor, Notepad: #include <stdio.h> int main(void) { printf("Output from running program"); return 0; } To build this into a program we only need to call the compiler and tell it the filename ...
by cnavarro
Sun Mar 28, 2021 5:24 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Make para BCC10
Replies: 7
Views: 1121

Can´t produce .exe with MSVC 2019 [solved]

Hello, I get this errors when linking: LINK : warning LNK4098: la biblioteca predeterminada'MSVCRT' entra en conflicto con otras bibliotecas; use la biblioteca /NODEFAULTLIB:biblioteca fiveh32.lib(VALTOSTR.obj) : error LNK2001: símbolo externo _HB_FUN_HB_TSTOUTC sin resolver fiveh32.lib(VSTRFUN1.obj...
by MOISES
Thu Jan 30, 2020 5:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Can´t produce .exe with MSVC 2019 [solved]
Replies: 3
Views: 629

Re: Problem x:\fwh\samples\dshow.prg

have now installed VS and run build h 32.bat dshow but i still get Error :( please help ┌────────────────────────────────────────────────────────────────────────────┐ │ FiveWin for Harbour 19.06 (MSVC++) Jun. 2019 Harbour development power │▄ │ (c) FiveTech 1993-2019 for Microsoft Windows 9X/NT/200X...
by Jimmy
Thu Dec 05, 2019 1:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem x:\fwh\samples\dshow.prg
Replies: 7
Views: 1411

communicating via shared memory

... -- simply creates the string and shared memory portion. shm_client.c -- attaches itself to the created shared memory portion and uses the string (printf. shm_server.c#include <sys/types.h>#include <sys/ipc.h>#include <sys/shm.h>#include <stdio.h>#define SHMSZ     ...
by Otto
Tue Sep 10, 2019 6:24 am
 
Forum: mod_harbour
Topic: communicating via shared memory
Replies: 7
Views: 1062

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

... int status; int fd; struct termios ti; struct termios ti_prev; // Open the serial port fd = open(dev, O_RDWR|O_NONBLOCK); if (fd < 0) { printf("ERROR! Failed to open %s\n", dev); return -1; } // Set the serial port in 485 mode ctrl485.rts_on_send = 0; // It means that DE is ...
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: 1415

lectura de un DLL -

... unsigned short lenr = sizeof(response); unsigned short i; ctn = 1; pn = 1; // Initialize card terminal ret = CT_init(ctn, pn); if (ret != OK) { printf("Error: CT_init failed with error %d\n", ret); return 1; } sad = 2; // Source = Host dad = 1; // Destination = Card Terminal // Send ...
by Busmatic_wpb
Thu Aug 03, 2017 1:27 am
 
Forum: FiveWin para CA-Clipper
Topic: lectura de un DLL -
Replies: 5
Views: 2599

C++Compiler - FREE TOOL

... program. Here is the source code of a file called simple.cpp that I wrote in the text editor, Notepad: #include <stdio.h> int main(void) { printf("Output from running program"); return 0; } To build this into a program we only need to call the compiler and tell it the filename ...
by carlos vargas
Fri Jul 22, 2016 4:07 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: C++Compiler - FREE TOOL
Replies: 18
Views: 8582

Re: Build with Visual Studio 2015 errors

Tim,

I already tried it and got the iob_func and printf errors.

Not sure how to solve them yet.
by Antonio Linares
Tue Apr 07, 2015 2:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Build with Visual Studio 2015 errors
Replies: 33
Views: 7888

Build with Visual Studio 2015 errors

I'm trying to build a project that works in Visual Studio 2013, but I'm using it with VS 2015 Preview. I get the following Unresolved Externals: __iob_func use in hbcplr.lib, hbpp.lib, hbvm.lib, rddcdx.lib, fiveH32.lib, and hbssl.lib _printf used in rddcdx.lib and hbpp.lib _ vacopy used in hbcommon....
by TimStone
Sat Mar 28, 2015 5:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Build with Visual Studio 2015 errors
Replies: 33
Views: 7888

Re: IEEE to MSBIN converter

Antonio,

with Borland it GPFs on return of the function _fieeetomsbin(). I tried three different online C compilers and got NAN (Not A Number) in the second printf().

EMG
by Enrico Maria Giordano
Tue Jan 20, 2015 8:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: IEEE to MSBIN converter
Replies: 12
Views: 2331

USO DE UNA DLL ayuda urgente ..

... la versión de la DLL IN: Buffer sobre el que se devolverá la tarjeta OUT (entero) 0=OK / resto=ERROR Ejemplo Uso: res=sVersionDLL(buffer); printf("VERSION DLL [%s]\n",buffer); 2. Comprobar si hay Tarjeta sobre el lector FUNCION: bool bHayTarjeta(byte TagID[10]) DESCRIPCION: chequea ...
by guapilescity
Fri Sep 13, 2013 3:44 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: USO DE UNA DLL ayuda urgente ..
Replies: 13
Views: 1869

Compilando con gcc y otros

... if( str_eq( "-v",argv[1]) ){ verbose = YES; } else if( str_eq( "-vv", argv[1] ) ){ verbose = YES; extraVerbose = YES; } else { printf("USAGE: %s [-v[v]]\n", argv[0]); printf("Prints a list of names and numeric IDs for attached displays.\n"); printf(" ...
by ramirezosvaldo2
Fri Jan 11, 2013 3:31 am
 
Forum: FiveMac / FivePhone (iPhone, iPad)
Topic: Compilando con gcc y otros
Replies: 0
Views: 888
Next

Return to advanced search