Search found 58 matches: cip

Return to advanced search

GetHostByName( GetHostName() )

I use WSAStartup() ; cIp := GetHostByName( GetHostName() ) ; WSACleanup(), to get the local IP address. However my system has an EtherNet, Hamachi, and 2 VMware showing as adapters. The address returned by the function GetHostByName ...
by byron.hopp
Wed Mar 06, 2024 7:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetHostByName( GetHostName() )
Replies: 1
Views: 162

Re: Condition of the site

Thank you, Karinha, it works! What are the WSAStartup/Wsacleanup functions for in this case? Why prescribe 2 times: cIp := GETHOSTBYNAME( "yoursite.com" ) cIp := GETHOSTBYNAME( "yoursite.com" ) Good Morning. This was a tip on the FiveWin Brasil forum. Just to ...
by karinha
Thu Dec 08, 2022 12:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Condition of the site
Replies: 3
Views: 452

Re: Condition of the site

Thank you, Karinha, it works!
What are the WSAStartup/Wsacleanup functions for in this case?
Why prescribe 2 times:
cIp := GETHOSTBYNAME( "yoursite.com" )
cIp := GETHOSTBYNAME( "yoursite.com" )
by Natter
Thu Dec 08, 2022 6:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Condition of the site
Replies: 3
Views: 452

Abrir explorador internet con una variable como URL

... en mi caso. Debajo dejo un ejemplo de lo que estoy intentando ejecutar. STATIC oWnd // ya esta definida en mi programa FUNCTION TEST() Local cIp,cCadena cIp:='192.168.0.253' // esta dirección la obtengo consultando un impresor fiscal en linea sin problemas // TEST 1 no funciona cCadena:='http://' ...
by mterraz
Thu Feb 21, 2019 3:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Abrir explorador internet con una variable como URL
Replies: 2
Views: 863

Re: Algun experto en el foro que use o uso Eagle 1 ?

FUNCTION DPMYSQLBD(cDb,cIp,cLogin,cPass,nPort,lError,lCreate,lAdd) LOCAL oDb,oMySql,nAt DEFAULT cIp :=oDp:cIp ,; cLogin :=oDp:cLogin,; cPass :=oDp:cPass ,; nPort :=oDp:nPort ,; cDb :=oDp:cDsnData,; lError :=.T.,; lCreate :=.F.,; lAdd ...
by jnavas
Thu Nov 15, 2018 2:36 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Algun experto en el foro que use o uso Eagle 1 ?
Replies: 15
Views: 3452

Re: Clase TTABLE insertar Registros en Tablas SQL Lexico XBASE

... se puede utilizar Otro gestor de base de datos u Odbc */ #include "FiveWin.ch" STATIC oServer,oDb,bSqlDate,cTypeBD FUNCTION MAIN() LOCAL cIp :="localhost" LOCAL cLogin:="root" LOCAL cPass :="" LOCAL oTable LOCAL aFiles:=DIRECTORY("*.*"),I SET DATE ...
by Compuin
Mon Nov 12, 2018 8:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase TTABLE insertar Registros en Tablas SQL Lexico XBASE
Replies: 15
Views: 3669

Re: WRAPPER - TAPI - DEVLINK

Buenos dias!

Code: Select all  Expand view

MsgInfo( CALLBACKFUNCTION() ) -> Devuelve el siguiente valor 4200408
 


La llamada a la funcion y sus parametros son estos

Code: Select all  Expand view

DLOpen( 1 , cIp , cPass , nil , nil , CallBackFunction() )
 


Donde las variables cIp y cPass son tipo char

Un saludo
by ARC
Fri Sep 07, 2018 6:10 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: WRAPPER - TAPI - DEVLINK
Replies: 37
Views: 4680

Re: GET no deja editar

... no lo entiendo local cVar := space(n) o nVar := 0 local oGet1, oGet2 @ x, y GET oGet1 VAR cVar...... usas el mismo objeto como var @ 1.4,0.5 GET cIp VAR cIp SIZE 115,10
by joseluisysturiz
Mon Dec 26, 2016 2:33 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: GET no deja editar
Replies: 1
Views: 445

GET no deja editar

... intentar colocar un valor los GET no lo aceptan. No logro entender la razon #include "fivewin.ch" FUNCTION MAIN() LOCAL oDlg,oFont LOCAL cIp :=cIp LOCAL cLogin :=cLogin LOCAL cPass :=cPass DEFINE FONT oFont NAME "Arial" SIZE 0, -11 BOLD DEFINE DIALOG oDlg TITLE "Datos del ...
by Compuin
Mon Dec 26, 2016 12:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: GET no deja editar
Replies: 1
Views: 445

Re: Need CURL syntax with fivewin using HBCURL LIB?

I wrote a function that access a website to retrieve information about products. STATIC FUNCTION PesquisaProduto( cIP ) LOCAL hCurl curl_global_init() IF !empty( hCurl := curl_easy_init() ) curl_easy_setopt( hCurl, HB_CURLOPT_HTTPHEADER, {"Content-Type:application/json","X-Cosmos-Token:yIgeHB34Qv6RO18QWsftQw"} ...
by ADutheil
Mon Oct 31, 2016 12:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Need CURL syntax with fivewin using HBCURL LIB?
Replies: 10
Views: 4811

Re: smtpserver

... connection to server de bell WSA ERROR CODE : 10060 can you held me donne la meme erreur (same error) function SendMail() local oOutMail, cIP, oOutMail1 oDlg:SetMsg( "Sending Internet email..." ) WSAStartup() * oOutMail1 := TSmtp():New( cIP := GetHostByName( "mail.lpsi.qc.ca" ...
by richard wilson
Wed Oct 05, 2016 6:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: smtpserver
Replies: 5
Views: 1365

Re: smtpserver

... respond after a period of time, or the established connection failed because the connected host has failed to respond. oOutMail := TSmtp():New( cIP := GetHostByName( "mail.lpsi.qc.ca" ) ) Have you provided the Port number, username password required to connect to your email server ...
by anserkk
Thu Sep 29, 2016 4:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: smtpserver
Replies: 5
Views: 1365

smtpserver

... IP ADDRESS : could not establish connection to server1.activedata.ca WSA ERROR CODE : 10060 can you held me function SendMail() local oOutMail, cIP, oOutMail1 oDlg:SetMsg( "Sending Internet email..." ) WSAStartup() * oOutMail1 := TSmtp():New( cIP := GetHostByName( "mail.lpsi.qc.ca" ...
by richard wilson
Wed Sep 28, 2016 3:28 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: smtpserver
Replies: 5
Views: 1365

Re: download a file from a https server

... ( NOT found ) the rest is working fine. Maybe I can detect inside the class where the problem comes from. The connection works ! METHOD New (cIP, cUser, cPW, cFTPFolder, cZIPFile, cLocalDir, nFlags) CLASS TUpdate DEFAULT cIP := "localhost",; cUser := "anonymous",; cPW ...
by ukoenig
Fri Aug 12, 2016 2:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: download a file from a https server
Replies: 7
Views: 2049

Re: Conocer el Numero de IP

cmsoft

Con
cIP := GetHostByName(GetHostName())

No funciona.

Saludos,

Adhemar
by acuellar
Thu Apr 21, 2016 3:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Conocer el Numero de IP
Replies: 6
Views: 1068
Next

Return to advanced search