Search found 51 matches: wsastartup

Return to advanced search

Antonio, Got the following error when trying to build application. FiveCEC.lib(WINSOCK.obj) : error LNK2005: HB_FUN_WSASTARTUP already defined in CDM-NET.obj FiveCEC.lib(WINSOCK.obj) : warning LNK4006: HB_FUN_WSASTARTUP already defined in CDM-NET.obj; second definition ignored Creating library CDM-N...
by cdmmaui
Fri Sep 14, 2007 2:22 pm
 
Forum: FiveWin for Pocket PC
Topic: Network connection
Replies: 18
Views: 5094

Antonio,

The GPF was caused by the WSAStartup() function. I removed it and I did not get the GPF. Is this function required?
by cdmmaui
Fri Sep 14, 2007 2:00 pm
 
Forum: FiveWin for Pocket PC
Topic: Network connection
Replies: 18
Views: 5094

Darrell,

If you mean local network, then you may check for a file existence:

if File( "\\machine\path\filename" )

For Internet access, you may use:

Function IsInternet()
WSAStartup()
RETURN GetHostByName( "www.microsoft.com" ) != "0.0.0.0"
by Antonio Linares
Fri Sep 14, 2007 10:52 am
 
Forum: FiveWin for Pocket PC
Topic: Network connection
Replies: 18
Views: 5094

... de harbour tiene que haber la forma de asignar la variable cTemp de nuevo al buffer. En 16 bits lo hago asi: cTemp:=WSAData:Buffer rc:=WSAStartup(bin2i(chr(1)+chr(1)),@cTemp) WSAData:Buffer:=cTemp Ya que la data BUFFER es asignable (3ª línea), ...
by JmGarcia
Thu May 24, 2007 2:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problema con estructuras de datos y sockets
Replies: 5
Views: 1299

... LEN WSASYS_STATUS_LEN MEMBER iMaxSock AS _INT MEMBER iMaxUdpDg AS _INT MEMBER lpVendor AS LONG ENDSTRUCT Ejemplos del wrapeo: DLL32 FUNCTION WSAStartup(n AS LONG, pStruct AS LPSTR) AS LONG PASCAL FROM "WSAStartup" LIB "wsock32.dll" DLL32 FUNCTION WSACleanup() AS LONG PASCAL FROM "WSACleanup" ...
by JmGarcia
Thu Apr 05, 2007 7:00 pm
 
Forum: FiveWin para Pocket PC
Topic: Soporte de sockets !!!
Replies: 4
Views: 2373

Leandro:

Esta es la que yo utilizo:

Function IsInternet()

LOCAL cIp, cVret := .F.

WsaStartUp()

cIp := GETHOSTBYNAME("microsoft.com")

WsaCleanUp()

RETURN (cIp<>"0.0.0.0")
by jcaro
Wed Dec 06, 2006 1:03 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Verificar Conexion con Internet
Replies: 4
Views: 1170

Una forma de hacerlo sin matar pulgas a cañonazos:

Function IsInternet()
WSAStartup()
RETURN (IIF(GetHostByName("microsoft.com")<>"0.0.0.0",.T.,.F.)
by R.F.
Tue Dec 05, 2006 10:24 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Verificar Conexion con Internet
Replies: 4
Views: 1170

Re: GetHostByName

EnricoMaria wrote:Ricordati di mettere WSAStartup() prima e WSACleanUp() dopo.


Grazie, ci provo!
by Ugo
Thu Nov 16, 2006 6:02 pm
 
Forum: All products support
Topic: GetHostByName
Replies: 2
Views: 950

Re: GetHostByName

Ricordati di mettere WSAStartup() prima e WSACleanUp() dopo.

EMG
by Enrico Maria Giordano
Thu Nov 16, 2006 2:42 pm
 
Forum: All products support
Topic: GetHostByName
Replies: 2
Views: 950

Jeff,

You must add WsaStartup() before the call to Gethostbyname() and add a WsaCleanup() after the call.

Try this:

Function GetIP()
Local cVar1
WsaStartUp()
cVar1 := GetHostByName( GetHostName() )
WsaCleanUp()
return cVar1

James
by James Bott
Sat Oct 28, 2006 2:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: PC IP Address
Replies: 2
Views: 852

Perdon por la Ignorancia pero
¿cuando es cuando debemos usar?

WSAStartup() y WSACleanup()

¿Es solo en Windows Mobile Verdad?
by creswinman
Wed Oct 18, 2006 5:05 pm
 
Forum: FiveWin for Pocket PC
Topic: Function GetHostByName() is Working on FWPPC ?
Replies: 4
Views: 1333

... en la clase TGraph, GetDC() y ReleaseDC() para imprimir correctamente en las previsualizaciones de impresión. * Mejora: En FWPPC, la función WsaStartup() ahora usa el valor 0x202 en lugar de 0x101. Supuestamente corrige un problema de conectividad de W2K. * Corrección: En FWPPC, había un ...
by Antonio Linares
Sun May 21, 2006 8:15 am
 
Forum: WhatsNew / Novedades
Topic: FTDN new May 2006 build / nuevo build de Mayo 2006
Replies: 1
Views: 2804

FTDN new May 2006 build / nuevo build de Mayo 2006

... is much faster now. * Enhancement: Class TGraph() New Methods GetDC() and ReleaseDC() to properly print ON print previews. * Enhancement: FWPPC, WsaStartup() now uses 0x202 instead of 0x101. Suposedly this fixes the W2K connectivity. * Fix: FWPPC, there was a bug in GetHostByName(), now it is ...
by Antonio Linares
Fri May 19, 2006 11:41 am
 
Forum: WhatsNew / Novedades
Topic: FTDN new May 2006 build / nuevo build de Mayo 2006
Replies: 1
Views: 2804

Antonio, WSAStartup() return 0 -> ok socket(2,1,0) return 1 -> ok oSocket:connect('192.168.1.2') hang up PPC (20 sec) and terminate with no message. In winsock.c is #include <WinSock.h> maby it should be <WinSock2.h> ...
by Eugeniusz Owsiak
Mon Apr 10, 2006 11:58 am
 
Forum: FiveWin for Pocket PC
Topic: Socket on Windows Server 2000
Replies: 23
Views: 7684

... a reason. Can You recompile winsock.c with some changes? //----------------------------------------------------------------------------// CLIPPER WSASTARTUP( PARAMS ) { WSADATA wsa; _retni( WSAStartup( 0x202, &wsa ) ); //was 0x101 } WSAStartup(0x101,&wsa) ...
by Eugeniusz Owsiak
Mon Apr 10, 2006 9:03 am
 
Forum: FiveWin for Pocket PC
Topic: Socket on Windows Server 2000
Replies: 23
Views: 7684
PreviousNext

Return to advanced search