Search found 22 matches: strcat

Return to advanced search

Re: Concatenar 2 string en MSVC

... esa memoria no es "dinámica" por lo que solo debe ser de lectura, pero bueno, eso puede aceptarse. El problema es que cuando tu hagas strcat() vas a intentar meterle un total de "amigos de FWH" 14 bytes (13 más el byte para el cero) y obviamente eso no cabe en los 9 bytes ...
by Antonio Linares
Fri Jul 08, 2022 10:11 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Concatenar 2 string en MSVC
Replies: 3
Views: 342

Concatenar 2 string en MSVC

Hola,

Necesito concatenar 2 nombres de variables pero estoy teniendo problemas al usar strcat.

Code: Select all  Expand view
strcat( query, dbname );


Como lo hago cuando utilizo con MSVC

Gracias de antemano.
by Compuin
Wed Jul 06, 2022 8:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Concatenar 2 string en MSVC
Replies: 3
Views: 342

Saber Ip Publico

... 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, 0, 0) == S_OK ) { FILE *fIpHtm = fopen(szPath, "r"); if( fIpHtm ...
by Busmatic_wpb
Fri Dec 07, 2018 2:12 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber Ip Publico
Replies: 1
Views: 607

Re: Windows Toast notifications - second try

... 363: Redefinition of 'StrNCat' is not identical Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 428: Redefinition of 'StrCatA' is not identical Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 431: Redefinition of 'StrCpyA' is not identical Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h ...
by Enrico Maria Giordano
Tue Apr 26, 2016 10:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Windows Toast notifications - second try
Replies: 86
Views: 23516

Re: Windows Toast notifications - second try

... 363: Redefinition of 'StrNCat' is not identical Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 428: Redefinition of 'StrCatA' is not identical Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 431: Redefinition of 'StrCpyA' is not identical Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h ...
by Antonio Linares
Tue Apr 26, 2016 10:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Windows Toast notifications - second try
Replies: 86
Views: 23516

Re: Windows Toast notifications - second try

... 363: Redefinition of 'StrNCat' is not identical Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 428: Redefinition of 'StrCatA' is not identical Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 431: Redefinition of 'StrCpyA' is not identical Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h ...
by Antonio Linares
Tue Apr 26, 2016 9:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Windows Toast notifications - second try
Replies: 86
Views: 23516

New FTDN september 2014 (FWH 14.09)

October 2014 (Included in FWH 14.09 ) ============ * Fix: Class TBtnBmp still required some fixes on the methods PaintCaption() and PaintBitmap() * Fix: In prv2pdf.prg removed the "¿" for non spanish languages * Enhancement: Minor improvement on Class TReport Method EndGroup() thanks to Da...
by Antonio Linares
Tue Oct 21, 2014 4:38 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN september 2014 (FWH 14.09)
Replies: 0
Views: 1111

Exportar a VCard

... n_archivo[]){ char extension[] = ".vcf"; char completo[80] = ""; int i; //Concatenar cadenas para añadir extension .vcf strcat(completo, n_archivo); strcat(completo, extension); //Creacion archivo FILE *vcard; vcard = fopen(completo,"wt"); for (i=0;i<n_contactos;i++){ ...
by Frafive
Wed Oct 15, 2014 7:46 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Exportar a VCard
Replies: 4
Views: 636

Problem compiling testtool.prg

... function(char *, char *)' expected 'int __cdecl function(const char *, const char *)'. c:\fwh\include\ClipApi.h(466): error: Redeclaration of 'strcat' previously declared at C:\xHB\c_include\string.h(23): found 'unsigned char * __cdecl function(unsigned char *, unsigned char *)' expected 'char ...
by Massimo Linossi
Fri Sep 19, 2014 6:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem compiling testtool.prg
Replies: 0
Views: 504

Re: Compile tbfuncs.c

... char *, const char *)' but found 'BOOL __cdecl function(char *, char *)'. C:\fw21\FWH_8\include\ClipApi.h(466): error #2120: Redeclaration of 'strcat', previously declared at C:\fw21\xHarbourinc\XHB Set 08\xHB\c_include\string.h(23); expected 'char * __cdecl function(char *, const char *)' ...
by AHF
Fri Feb 10, 2012 8:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Compile tbfuncs.c
Replies: 9
Views: 2683

Re: Ayuda con codigo en c

Alejandro,

Si quieres poner espacios puedes hacerlo asi:
Code: Select all  Expand view

strcpy( cmd, argv[ 1 ] );
strcat( cmd, " " );
strcat( cmd, argv[ 2 ] );
 

strcat() es similar a usar "+" con cadenas :-)
by Antonio Linares
Tue Nov 17, 2009 11:25 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con codigo en c
Replies: 3
Views: 543

... 'int __cdecl function(char *, char *)' expected 'int __cdecl function(const char *, const char *)'. .\ClipApi.h(421): error: Redeclaration of 'strcat' previously declared at D:\COMPILER\xHB\c_include\string.h(23): found 'unsigned char * __cdecl function(unsigned char *, unsigned char *)' expected ...
by hterce
Wed Sep 03, 2008 10:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Source code for Tree32.lib
Replies: 13
Views: 3308

ADO

... put the 'field' names first cRc = "" FLDS = RS.Fields nCount = FLDS.Count() For i=0 to ( nCount-1 ) nField = RS.Fields(i) cName= nField.Name cRc = strcat(cRc,",",cName) Next cRc = StrSub(cRc,2,-1) FileWrite(fle,cRc) Finally, I discovered that MDAC 2.5 permits you to use the GetStrin() method cRest ...
by Antonio Linares
Wed Aug 27, 2008 7:29 am
 
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 65585

... function(char *, char *)' expected 'int __cdecl function(const char *, const char *)'. E:\FW\include\ClipApi.h(466): error: Redeclaration of 'strcat' previously declared at E:\xHB\c_include\string.h(23): found 'unsigned char * __cdecl function(unsigned char *, unsigned char *)' expected 'char ...
by mantonio_08
Wed May 14, 2008 9:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TSBROWSE
Replies: 9
Views: 1809

... function(char *, char *)' expected 'int __cdecl function(const char *, const char *)'. E:\FW\include\ClipApi.h(466): error: Redeclaration of 'strcat' previously declared at E:\xHB\c_include\string.h(23): found 'unsigned char * __cdecl function(unsigned char *, unsigned char *)' expected 'char ...
by daniel_halon
Wed May 14, 2008 3:24 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TSBROWSE
Replies: 9
Views: 1809
Next

Return to advanced search

cron