Internet connection PPC2003 - VS2005
- From: "Rick" <enricx@xxxxxxxx>
- Date: 14 Jul 2006 01:30:46 -0700
Hi,
I'm developing an application that opens a socket whith a remote server
via GPRS and I think the best way is using "wininet.dll" for open the
connection. That's right?
The tools used: VS2005, PPC2003, VB.NET. There is no SDK instaled (With
VS2005 is not needed??)
The problem is that I can't acces to the function "InternetDial"
neither "InternetHangUp". Doesn't find entrypoint to this functions.
I have the same problem whith the emulador and whith the device. The
same code for a PC application is ok. So the problem is whith the file
"wininet.dll" in the emulator/device?
Function declaration
-------------------------------------
Private Declare Function InternetDial Lib "wininet.dll" (ByVal
hwndParent As IntPtr, _
ByVal lpszConnectoid As String, ByVal dwFlags As Int32, ByRef
lpdwConnection As Int32, _
ByVal dwReserved As Int32) As Int32
Private Declare Function InternetAttemptConnect Lib "wininet.dll"
(ByVal dwReserved As Int32) As Int32
Private Declare Function InternetGetConnectedState Lib "wininet.dll"
(ByRef lpdwFlags As Int32, _
ByVal dwReserved As Int32) As Boolean
Private Declare Function InternetHangUp Lib "wininet.dll" _
(ByVal lpdwConnection As Int32, ByVal dwReserved As Int32) As
Int32
-------------------------------------
called from
DResult = InternetDial(Me.Handle, "My Connection",
DialUpOptions.INTERNET_DIAL_FORCE_PROMPT, mlConnection, 0)
DResult = InternetAttemptConnect(0)
Result = InternetHangUp(mlConnection, 0&)
-------------------------------------
Does anybody know what can be the cause of this error?
Thanks in advance
Rick
.
- Follow-Ups:
- Re: Internet connection PPC2003 - VS2005
- From: Yaroslav Goncharov
- Re: Internet connection PPC2003 - VS2005
- Prev by Date: Hot key
- Next by Date: "WAP Message" vs "WAP Push Message"?
- Previous by thread: Hot key
- Next by thread: Re: Internet connection PPC2003 - VS2005
- Index(es):
Relevant Pages
|