G
Guest
I am writing an Compact Framework 2.0 application in C# for a CE 4.2 device.
I need to programmatically connect to the Internet via Dial Up Networking.
I have Internet Explorer set up to where it automatically connects (dials via
DUN) to the Internet when attempting to go to a web site. However, when I
use HttpWebRequest (i.e. Webreqest - post); it does not automatically connect
to the Internet if not connected. I need to connect first, then my program
can connect to the Internet. I though .NET would automatically connect like
IE. Thus apparently I need to manually connect to the Internet in my
program.
In the past I used the Connection Manager in eMbedded C++, however, I cannot
use this since it references cellcore.dll, which does not exist since my
device is a
PDA and not a cell phone. Is there a managed API I can call to
programmatically connect to the Internet. I know I can shell execute
"rnaapp.exe -eDUN", where DUN is the name of my Dial Up Networking
connection. However this is awkward since it prompts the user to click "OK"
to actually dial. I do not want the user to get prompted; I just want to
automatically connect.
Also, what managed function do I call to see what the current IP address is
of my CE device?
I need to programmatically connect to the Internet via Dial Up Networking.
I have Internet Explorer set up to where it automatically connects (dials via
DUN) to the Internet when attempting to go to a web site. However, when I
use HttpWebRequest (i.e. Webreqest - post); it does not automatically connect
to the Internet if not connected. I need to connect first, then my program
can connect to the Internet. I though .NET would automatically connect like
IE. Thus apparently I need to manually connect to the Internet in my
program.
In the past I used the Connection Manager in eMbedded C++, however, I cannot
use this since it references cellcore.dll, which does not exist since my
device is a
PDA and not a cell phone. Is there a managed API I can call to
programmatically connect to the Internet. I know I can shell execute
"rnaapp.exe -eDUN", where DUN is the name of my Dial Up Networking
connection. However this is awkward since it prompts the user to click "OK"
to actually dial. I do not want the user to get prompted; I just want to
automatically connect.
Also, what managed function do I call to see what the current IP address is
of my CE device?