Search found 39 matches: fileio

Return to advanced search

Re: Function Hb_DirExists() no permite File() ubique los archivo

He realizado esta prueba en modo consola y si ubica el archivo dentro de la carpeta de samples #include "fileio.ch" #define CRLF Chr(13)+Chr(10) FUNCTION Main() LOCAL cDir := "C:\Program Files" IF HB_DirExists(cDir) ?cDir + CRLF + CRLF + If(IsDirWritable(cDir), ...
by CARLOS ATUNCAR
Thu Nov 02, 2023 3:45 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Function Hb_DirExists() no permite File() ubique los archivo
Replies: 14
Views: 701

Re: dbfntx very slow with 2+ users

... (no idea what SMB is (look into it) read here about Opportunistic locks (oplocks) https://docs.microsoft.com/en-US/windows/win32/fileio/opportunistic-locks this Paper is about : "What's New in SMB" Applies To: Windows 7, Windows Server 2008 R2 (SMB-2) https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/ff625695(v=ws.10)?redirectedfrom=MSDN ...
by Jimmy
Thu Apr 14, 2022 7:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: dbfntx very slow with 2+ users
Replies: 41
Views: 6813

Re: Previously opened Excel / Word files.

simply try to open in exclusive mode before
#include "FileIO.ch"

FUNCTION MAIN( cFile )
LOCAL nHandle

nHandle := FOPEN( cFile , FO_EXCLUSIVE )
IF nHandle = -1
? "Error" , FERROR()
ELSE
? "nHandle" , nHandle
FCLOSE( nHandle )
ENDIF

RETURN NIL
by MarcoBoschi
Thu Jan 14, 2021 12:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Previously opened Excel / Word files.
Replies: 2
Views: 421

Complete way update for FWH to newest version

... file parts of buildh.bat link items is also important to update into my program folder right ? I include sometimes files like : Include report fileio btnget mail barcode and request DBFCDX DBFNTX DBFFPT DBFDBT Some of these I see in the buildh.bat files, so they are linked in if I put the lines ...
by Marc Venken
Sat Dec 26, 2020 1:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Complete way update for FWH to newest version
Replies: 2
Views: 485

Re: Manual Mercury - Listo !

Buenos dias lo que tengo en /go es: /include /include/fileio.ch /include/hbclass.ch /include/hbhash.ch /include/hboo.ch /lib /lib/mercury /lib/mercury/mercury.ch /lib/mercury/mercury.hrb /src /src/controller /src/model /src/view /src/view/hello.view ...
by PGO
Tue Sep 15, 2020 7:23 am
 
Forum: mod_harbour
Topic: Manual Mercury - Listo !
Replies: 26
Views: 4511

Re: Retomo Problema de uso de Word

Por favor postea el error que se genera, y disculpa, olvidé comentarte que es una funcion de bajo nivel y usa fileio.ch* Pon al inicio del fichero principal de tu programa #include "fileio.ch", o usalo como variable local. ej local FO_EXCLUSIVE := 16 -------------------------------------------------------------------- ...
by FranciscoA
Sat Oct 12, 2019 1:08 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Retomo Problema de uso de Word "FUNCIONANDO"
Replies: 17
Views: 2938

Re: Faster way then append from SDF

Hi,

Don´t write, only read.

Use FileEval() function from https://github.com/ibarrar/clipper/blob/master/CLIPPER5/SOURCE/SAMPLE/FILEIO.PRG

Regards
by hmpaquito
Fri Feb 15, 2019 8:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Faster way then append from SDF
Replies: 11
Views: 2172

Re: Fatturazione Elettronica

quindi #include "FiveWin.ch" #include "FileIo.ch" FUNCTION FatturazioneElettronica() LOCAL cBuffer LOCAL nHandle nHandle := fCreate( cXmlFile, FC_NORMAL ) fWrite( nHandle, [<?xml version="1.0" encoding="UTF-8" ...
by Silvio.Falconi
Tue Dec 04, 2018 3:26 pm
 
Forum: All products support
Topic: Fatturazione Elettronica
Replies: 91
Views: 63498

Re: HTML template

Please include fileio.ch.

EMG
by Enrico Maria Giordano
Tue Sep 25, 2018 12:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HTML template
Replies: 4
Views: 762

Re: Fwh used for Prestashop shopcard

... #include "report.ch" #include "hbcompat.ch" #include 'ord.ch' #include "XBrowse.Ch" #include "fileio.ch" this code give a error. Should I activate some ODBC or so ? function Presta()   local oCn, oRs   local cServer     := "http://www.kaboutersopglabbeek.be/"  ...
by Marc Venken
Wed Dec 14, 2016 10:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fwh used for Prestashop shopcard (SOLVED)
Replies: 9
Views: 2012

Re: FindWindow in a server

Hakan,

In harbour\include\fileio.ch there is a FO_EXCLUSIVE define that can be used as a flag for FOpen().

Here it is explained how to use it:
http://www.fivetechsoft.com/harbour-docs/harbour-reference-guide.htm#FOpen
by Antonio Linares
Sun Feb 08, 2015 8:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FindWindow in a server
Replies: 9
Views: 1201

Re: create an arra from txt file

... in the current directory. <nMode> A numeric value specifying the open mode and access rights for the file. #define constants from the FILEIO.CH file can be used for <nMode> as listed in the table below: File open modes Constant Value Description FO_READ *) 0 Open file for reading ...
by sambomb
Tue Jan 27, 2015 1:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create an arra from txt file
Replies: 7
Views: 2441

Re: Migrando de FWH 32 a FWH 64 - hb_fsOpen() fopen() en C

... completo que ha sido necesario: Para usar hb_fsOpen() en vez de fopen() además de añadir en los includes #include <hbapifs.h> y #include <fileio.ch>, hay que hacer una conversión de tipo para hb_fsOpen() para evitar otro warning. De modo que si el código original con fopen() era por ...
by Verhoven
Tue Jan 06, 2015 6:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Migrando de FWH 32 a FWH 64 - windows.h
Replies: 79
Views: 19117

Re: Migrando de FWH 32 a FWH 64 - windows.h

Antonio, Aunque incluyamos en la parte C ese <fileio.ch> como sigue // Para VSC2013.#include "warningsVSC2013.h"#include "ws2tcpip.h"  //For WinSock 2 library: ws2_32.lib#include "wininet.h"#include "windows.h"#include ...
by Verhoven
Tue Jan 06, 2015 8:25 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Migrando de FWH 32 a FWH 64 - windows.h
Replies: 79
Views: 19117

Re: Migrando de FWH 32 a FWH 64 - windows.h

Paz,

Cambia esta línea:

fichero = hb_fsopen( nombre, "w" );

por

fichero = hb_fsopen( nombre, FO_WRITE );

tienes que añadir este fichero de cabecera:

#include <fileio.ch>
by Antonio Linares
Mon Jan 05, 2015 10:22 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Migrando de FWH 32 a FWH 64 - windows.h
Replies: 79
Views: 19117
Next

Return to advanced search