Re: Connecting to the internet
- From: Tony Paille <paille_nomail@xxxxxxxxx>
- Date: Wed, 19 Oct 2005 15:33:50 -0500
I've used wininet and it definitely expects a tcp/ip stack. It is not specifically geared towards modem or LAN - it justs wants an IP to connect to. If your LAN is working, you should just be able to specify the destination IP and let the stack take care of finding the appropriate adapter. However, for a modem, you would need to have RAS setup to make the connection and an appropriate profile setup for AutoRAS to connect, if you did not want the user to initiate the connection themselves.
r_z_aret@xxxxxxxxxxxx wrote:
On Wed, 28 Sep 2005 12:22:50 +0100, "JoeB" <joe@xxxxxxxxxxxxx> wrote:
Hi,
I need to connect my device to the internet. It has a modem and a lan connection. I would like to write software that can connect using either the modem or the lan connection.
How can i do this? I took a look at wininet.dll API but cannot figure out how to choose the connection to the net. It all seems geared towards a modem and not a lan connection, whereas i need the option to do both,
I've never used wininet, so can't say much. One big reason I haven't used it is because it was unreliable for earlier versions of Windows CE. I _think_ it is still unreliable.
I use WinSock. And I _think_ it assumes a tcp/ip stack exists. In other words, it provides no tools for setting up a connection. I _think_ wininet is similar.
I suggest separating the code that uses a connection from code that sets up a connection. Use wininet or winsock for the former. Sorry, but I can't help you set up a connection (I let users do that).
please someone help with this, i've been working on this for almost a month and still cannot connect!
joe
----------------------------------------- To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP PenFact, Inc. 500 Harrison Ave., Suite 3R Boston, MA 02118 www.penfact.com
-- Tony Paille NetStorm Consulting paille (a t) netstorm (d o t) mb (d o t) ca .
- Prev by Date: Re: running a service/driver/application upon startup
- Next by Date: Re: Command Prompt
- Previous by thread: fast interprocess communication
- Next by thread: Re: Command Prompt
- Index(es):
Relevant Pages
|