Hi all,

I want to automate dial up process with VFP. Bill Sanders point me to:
http://support.microsoft.com/support/kb/articles/Q168/2/56.ASP

But I couldn't run it from WinXP.

Ideas?

TIA,
Willianto

Re: How to encapsulate or automate Dial-up in my apps (running WinXP)? by Eric

Eric
Mon May 17 00:39:38 CDT 2004

Hello, Willianto!
You wrote on Sun, 16 May 2004 23:21:19 +0700:

W> I want to automate dial up process with VFP.

There's a great RAS/DUN sample in the STRUCT class by Christof Lange. You
can download it from the universalthread.com.
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Re: How to encapsulate or automate Dial-up in my apps (running WinXP)? by Willianto

Willianto
Mon May 17 01:47:20 CDT 2004

Hi Eric

Thanks for your reply :)
> There's a great RAS/DUN sample in the STRUCT class by Christof Lange.
You
> can download it from the universalthread.com.
Pheew...
Took me some time to search the download. The download id is #9557.
Thanks Eric. I'll check out the struct class and post back should I
still have this problem.

Regards,
Willianto



Re: How to encapsulate or automate Dial-up in my apps (running WinXP)? by Willianto

Willianto
Mon May 17 05:58:12 CDT 2004

Hi Eric,

I've tried the sample. It's not running on my box. The program fail to
connect, but seems like it does something 'unfinished'. I cannot open
DUN afterwards. It kept sending me to the connection properties windows
instead of the connect to window.

Does it run on your box? I am using Windows XP.

Willianto

"Eric den Doop" <ericdendoop@xspamblockxfoxite.com> wrote in message
news:#ziVaF9OEHA.3348@TK2MSFTNGP09.phx.gbl...
> Hello, Willianto!
> You wrote on Sun, 16 May 2004 23:21:19 +0700:
>
> W> I want to automate dial up process with VFP.
>
> There's a great RAS/DUN sample in the STRUCT class by Christof Lange.
You
> can download it from the universalthread.com.
> --
> Eric den Doop
> www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By
VFP8
>
>



Re: How to encapsulate or automate Dial-up in my apps (running WinXP)? by Eric

Eric
Mon May 17 06:30:19 CDT 2004

Hello, Willianto!
You wrote on Mon, 17 May 2004 17:58:12 +0700:

W> I've tried the sample. It's not running on my box. The program fail to
W> connect, but seems like it does something 'unfinished'. I cannot open
W> DUN afterwards. It kept sending me to the connection properties windows
W> instead of the connect to window.
W> Does it run on your box? I am using Windows XP.

The code is working fine in of my apps and under all Win32 operating
systems. Do you get an error message?
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Re: How to encapsulate or automate Dial-up in my apps (running WinXP)? by Neil

Neil
Mon May 17 14:26:16 CDT 2004

Hi Willianto,

If you're on the same project as earlier, see my post in your "How to
automate file transfer via modem (Will pcAnywhere do?)" thread in this NG.

Regards,
Neil

"Willianto" <willianto@remove-me.telkom-and-me.net> wrote in message
news:ecf9%2391OEHA.3016@tk2msftngp13.phx.gbl...
> Hi all,
>
> I want to automate dial up process with VFP. Bill Sanders point me to:
> http://support.microsoft.com/support/kb/articles/Q168/2/56.ASP
>
> But I couldn't run it from WinXP.
>
> Ideas?
>
> TIA,
> Willianto
>
>



Re: How to encapsulate or automate Dial-up in my apps (running WinXP)? by Neil

Neil
Mon May 17 15:15:16 CDT 2004

Hi Willianto,

From http://www.news2news.com/vfp/?example=312&function=482

#DEFINE INTERNET_AUTODIAL_FORCE_ONLINE 1
#DEFINE INTERNET_AUTODIAL_FORCE_UNATTENDED 2
#DEFINE INTERNET_AUTODIAL_FAILIFSECURITYCHECK 4

DECLARE INTEGER GetActiveWindow IN user32

DECLARE INTEGER InternetDial IN wininet;
INTEGER hwndParent, STRING lpszConnectoid, INTEGER dwFlags,;
INTEGER @lpdwConnection, INTEGER dwReserved

LOCAL hConnection
hConnection = 0

? InternetDial (GetActiveWindow(), "MyDUNConnectionName",;
INTERNET_AUTODIAL_FORCE_ONLINE, @hConnection, 0)

HTH

Regards,
Neil

"Willianto" <willianto@remove-me.telkom-and-me.net> wrote in message
news:ecf9%2391OEHA.3016@tk2msftngp13.phx.gbl...
> Hi all,
>
> I want to automate dial up process with VFP. Bill Sanders point me to:
> http://support.microsoft.com/support/kb/articles/Q168/2/56.ASP
>
> But I couldn't run it from WinXP.
>
> Ideas?
>
> TIA,
> Willianto
>
>