• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5830
  • Last Modified:

Program a GPRS connection

Hi,

I am using the Pocket PC XDA.  i want to programmatically create a GPRS connection using VB.NET.  Does anyone have any pointers?

Thanks
0
dommy1
Asked:
dommy1
1 Solution
 
drelectroCommented:
Yes sure:-

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcedial/html/cerefrasdial.asp
Shows how to start a dial up networking connection programatically.

The following has some VB specific details:-

http://www.mentalis.org/apilist/RasDial.shtml

Hope that helps
0
 
Didier VallySystems Engineer and Finance AnalystCommented:
I think it's going to be hard to code in VB.NET. Anyway, here are some tips :

You could import the RAS structures in VB.NET, and then you'll have to do the following :

Configure a simple RAS connections with RasCreateEntry,
Then write some registry entries on your client platform :
   - For configuring dial strings parameters (Key Dial\Locations or something like this)
   - For configuring the APN programmatically (in the DevCfg structure)

The username/password will be coded in your RASENTRY structure because there are fields for that.



I would suggest you to code in C/C++ under Embedded Visual C++ 4.0 (.NET) and try to download Platform Builder trial edition because there are VERY GOOD SAMPLES for doing that in it ;)
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now