... oCone:Open( "DRIVER={MySQL ODBC 3.51 Driver};" + ;
"server=" + cServer + ;
";database=" + cDatabase + ;
";uid=" + cUser + ;
";port=" + cPort + ;
";pwd=" + cPass )
oRecordSet := TOleAuto():New("adodb.recordset")
oComando := TOLEAUTO():New("adodb.command")
oRecordSet:CursorType := 1 ...
Search found 46 matches: cport
Searched query: cport
- Thu Sep 19, 2024 4:20 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Relecionar RecordSet
- Replies: 5
- Views: 880
- Wed Apr 27, 2022 9:57 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: USAR IMPRESORA FISCAL BERMATECH EN VENEZUELA EN PDV
- Replies: 22
- Views: 10994
Re: USAR IMPRESORA FISCAL BERMATECH EN VENEZUELA EN PDV
... cHora)
? BemaReporteZeta(cFecha,cHora),"REPORTEZ"
RETURN .T.
FUNCTION ISWINXP()
RETURN .T.
//Faz abertura do dia
// DLL32 FUNCTION LECTURA ( cPort AS LPSTR ) AS LONG PASCAL ;
// FROM "IniPuertaStr" LIB oDp:nBemaDLL
//DLL32 FUNCTION LECTURA( cPort AS STRING ) AS LONG PASCAL FROM "IniPuertaStr ...
? BemaReporteZeta(cFecha,cHora),"REPORTEZ"
RETURN .T.
FUNCTION ISWINXP()
RETURN .T.
//Faz abertura do dia
// DLL32 FUNCTION LECTURA ( cPort AS LPSTR ) AS LONG PASCAL ;
// FROM "IniPuertaStr" LIB oDp:nBemaDLL
//DLL32 FUNCTION LECTURA( cPort AS STRING ) AS LONG PASCAL FROM "IniPuertaStr ...
- Wed Jul 28, 2021 4:57 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: How to read data from a serial port ?
- Replies: 10
- Views: 1415
Re: How to read data from a serial port ?
Enrico,
IF you have COM1 in your micro, could you try this code for a COM port that doesn't exist ?
I'm having the problem when I try to do an OpenComm( cPort, 1024, 10 ), for a COM port that doesn't exist in my computer. The function returns -1, but each time I try, CPU use is increased quickly.
IF you have COM1 in your micro, could you try this code for a COM port that doesn't exist ?
I'm having the problem when I try to do an OpenComm( cPort, 1024, 10 ), for a COM port that doesn't exist in my computer. The function returns -1, but each time I try, CPU use is increased quickly.
- Tue Jun 08, 2021 7:32 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Send EMail Within FW Appplication (RESOLVED)
- Replies: 18
- Views: 4196
Re: Send EMail Within FW Appplication....
... STATIC FUNCTION SENDMAIL( cFrom, cServer, cTo, cSubject, cMessage, aAttach, cSender, cUser, cPassword, aCc, lHtml, cPort, lNotification, lSSL )
LOCAL lOk := .F.
LOCAL oCfg, oMsg
LOCAL cCc := ""
LOCAL i
DEFAULT lHtml := "<html" $ LOWER( cMessage )
DEFAULT ...
LOCAL lOk := .F.
LOCAL oCfg, oMsg
LOCAL cCc := ""
LOCAL i
DEFAULT lHtml := "<html" $ LOWER( cMessage )
DEFAULT ...
- Tue Jun 08, 2021 4:17 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Send EMail Within FW Appplication (RESOLVED)
- Replies: 18
- Views: 4196
Re: Send EMail Within FW Appplication....
... I am passing all parameters to sendmail()
SENDMAIL( cFrom, cServer, cTo, cSubject, cMessage, aAttach, cSender, cUser, cPassword, aCc, lHtml, cPort,lNotification , lSSL )
This is the return message : "Unsent message check windows live mail"
LOCAL cFrom := "amriazkhan@gmail.com"
LOCAL ...
SENDMAIL( cFrom, cServer, cTo, cSubject, cMessage, aAttach, cSender, cUser, cPassword, aCc, lHtml, cPort,lNotification , lSSL )
This is the return message : "Unsent message check windows live mail"
LOCAL cFrom := "amriazkhan@gmail.com"
LOCAL ...
- Fri Jul 13, 2018 8:37 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Busqueda SQL
- Replies: 15
- Views: 3773
Re: Busqueda SQL
... connection")
oCone:Open( "DRIVER={MySQL ODBC 3.51 Driver};" + ;
"server=" + cServer + ;
";database=" + cDatabase + ;
";uid=" + cUser + ;
";port=" + cPort + ;
";pwd=" + cPass )
xRfc:="XAXX010101XXX"
If Empty(oCone)
MsgAlert(" No se pudo establecer la conexion con la Base de Datos..","Atencion ...
oCone:Open( "DRIVER={MySQL ODBC 3.51 Driver};" + ;
"server=" + cServer + ;
";database=" + cDatabase + ;
";uid=" + cUser + ;
";port=" + cPort + ;
";pwd=" + cPass )
xRfc:="XAXX010101XXX"
If Empty(oCone)
MsgAlert(" No se pudo establecer la conexion con la Base de Datos..","Atencion ...
- Sun Mar 26, 2017 3:33 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: class tprinter and a dot-matrix printer
- Replies: 2
- Views: 957
Re: class tprinter and a dot-matrix printer
... 10,20, "This goes in line 10, column 20")
oPrn:EndPage() // optional
oPrn:End()
A little description of all the members of this class:
DATAs:
cPort: Printing port, by default "LPT1"
cCompress: String for compressed mode, by default "15"
cNormal: String for normal mode, by default "18 ...
oPrn:EndPage() // optional
oPrn:End()
A little description of all the members of this class:
DATAs:
cPort: Printing port, by default "LPT1"
cCompress: String for compressed mode, by default "15"
cNormal: String for normal mode, by default "18 ...
- Thu Aug 18, 2016 4:01 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Ejemplo TdosPrn
- Replies: 11
- Views: 3436
Re: Ejemplo TdosPrn
... 10,20, "This goes in line 10, column 20")
oPrn:EndPage() // optional
oPrn:End()
A little description of all the members of this class:
DATA:
cPort: Printing port, by default "LPT1"
cCompress: String for compressed mode, by default "15"
cNormal: String for normal mode, by default "18 ...
oPrn:EndPage() // optional
oPrn:End()
A little description of all the members of this class:
DATA:
cPort: Printing port, by default "LPT1"
cCompress: String for compressed mode, by default "15"
cNormal: String for normal mode, by default "18 ...
- Mon Jun 13, 2016 1:50 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: A tool to send email ?
- Replies: 25
- Views: 11704
Re: A tool to send email ?
... cSender, cUser, cPassword )
RETURN NIL
FUNCTION SENDMAIL( cFrom, cServer, cTo, cSubject, cMessage, aAttach, cSender, cUser, cPassword, aCc, lHtml, cPort, lNotification )
...
...
maybe something missing or not possible to use it ?
or is there maybe another working sample in the meantime
because ...
RETURN NIL
FUNCTION SENDMAIL( cFrom, cServer, cTo, cSubject, cMessage, aAttach, cSender, cUser, cPassword, aCc, lHtml, cPort, lNotification )
...
...
maybe something missing or not possible to use it ?
or is there maybe another working sample in the meantime
because ...
- Fri Sep 18, 2015 2:03 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: TDolphin error al grabar...SQL
- Replies: 5
- Views: 1307
Re: TDolphin error al grabar...SQL
... t.)
/********************************************************/
static function ConnectTo()
/*
*/
LOCAL oServerIni, cServer, cUser, cPass, cBanco, cPort, nPort, nFlags, oErr
Pega_Script('connect.ini', @cServer, @cUser, @cPass, @cBanco, @cPort )
oServerIni := NIL
nPort := Val(cPort)
nFlags ...
/********************************************************/
static function ConnectTo()
/*
*/
LOCAL oServerIni, cServer, cUser, cPass, cBanco, cPort, nPort, nFlags, oErr
Pega_Script('connect.ini', @cServer, @cUser, @cPass, @cBanco, @cPort )
oServerIni := NIL
nPort := Val(cPort)
nFlags ...
- Fri May 22, 2015 12:53 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Test to see if USB Printer is ready
- Replies: 20
- Views: 6485
Re: Test to see if USB Printer is ready
... nbsp; 8388608#define PRINTER_STATUS_POWER_SAVE 16777216//------------------------FUNCTION Main()Local cPort,aPrn,nStatus,aPrintercPort := PrnGetPort()Msginfo( cPort )cPrinter := GetDefaultPrinter()msginfo( "cPrinter" ) ...
- Wed Mar 20, 2013 12:53 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Instalacion necesaria para conectar a Oracle 11g
- Replies: 15
- Views: 6149
Re: Instalacion necesaria para conectar a Oracle 11g
... de entorno ORACLE_HOME al directorio de tu instalcion de Instant Client.
cCmd :="Provider=OraOLEDB.Oracle;Data Source="+alltrim(cServer)+":"+alltrim(cPort)+"/"+alltrim(cSid)+";User ID="+alltrim(cUser)+";Password="+alltrim(cPassword)+";"
// ??? cCmd
oCn := FW_OpenAdoConnection( cCmd )
Slds
cCmd :="Provider=OraOLEDB.Oracle;Data Source="+alltrim(cServer)+":"+alltrim(cPort)+"/"+alltrim(cSid)+";User ID="+alltrim(cUser)+";Password="+alltrim(cPassword)+";"
// ??? cCmd
oCn := FW_OpenAdoConnection( cCmd )
Slds
- Thu Nov 15, 2012 2:28 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Impresion Dos en epson lx-300+ii
- Replies: 2
- Views: 1019
Impresion Dos en epson lx-300+ii
... con la misma version de windows.
En una aplicacion para imprimir remisiones tipo DOS, tengo ha grandes rasgos esta function:
function ImprDos(cPort)
local OBJ_PRINT
local OBJ_FILE:=NombreTmp('PRN') // nombre de archivo temporal con extencion PRN
OBJ_PRINT:=TDosPrn():New(OBJ_FILE)
OBJ_PRINT ...
En una aplicacion para imprimir remisiones tipo DOS, tengo ha grandes rasgos esta function:
function ImprDos(cPort)
local OBJ_PRINT
local OBJ_FILE:=NombreTmp('PRN') // nombre de archivo temporal con extencion PRN
OBJ_PRINT:=TDosPrn():New(OBJ_FILE)
OBJ_PRINT ...
- Tue Aug 14, 2012 3:02 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Enviando mensajes de WhatsApp
- Replies: 212
- Views: 93291
Re: Enviando mensajes de WhatsApp
... MANEJO estas funciones y me abre elpuerto como servidor y yo puede manipular todas las operaciones
hb_InetInit()
Socket := hb_InetServer( val( cPort ) )
ya con esta dos funciones ya puedo recibir la informacion de los clientes
y con hbsocket cuales serias las funciones para iniciar como ...
hb_InetInit()
Socket := hb_InetServer( val( cPort ) )
ya con esta dos funciones ya puedo recibir la informacion de los clientes
y con hbsocket cuales serias las funciones para iniciar como ...
- Mon Jan 24, 2011 8:50 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: TDOSPRN y XP WINDOWS
- Replies: 21
- Views: 5648
Re: TDOSPRN y XP WINDOWS - SOLUCIONADO
... 10,20, "This goes in line 10, column 20")
oPrn:EndPage() // optional
oPrn:End()
A little description of all the members of this class:
DATA:
cPort: Printing port, by default "LPT1"
cCompress: String for compressed mode, by default "15"
cNormal: String for normal mode, by default "18 ...
oPrn:EndPage() // optional
oPrn:End()
A little description of all the members of this class:
DATA:
cPort: Printing port, by default "LPT1"
cCompress: String for compressed mode, by default "15"
cNormal: String for normal mode, by default "18 ...