Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can VFP make W2K DUN connect and hang up?
Message
From
07/11/2002 12:52:18
 
 
To
07/11/2002 12:37:39
Joel Whitehead
Ccs Central Computer Services Inc.
Thunder Bay, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00719776
Message ID:
00719932
Views:
13
Also you can try:
#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(), "MyProvider",; 
    INTERNET_AUTODIAL_FORCE_ONLINE, @hConnection, 0) 

? "Number associated with the connection:", hConnection 
See the link below:

http://news2news.com/vfp/?function=-1&example=312

Also, I'm assuming you already have ftp code?

If not:
LOCAL cFile, nResults, cURL

DECLARE LONG URLDownloadToFile IN URLMON.DLL ;
        LONG, STRING, STRING, LONG, LONG

cURL  = "ftp://www.mywebsite.com/mydownload.exe"
cFile = "c:\temp\myfile.exe"

nResults = URLDownloadToFile(0, cURL, cFile, 0, 0)

If nResult = 0    && OK
	WAIT WINDOW "Download was successful" NOWAIT
ELSE
	WAIT WINDOW "Download was UNsuccessful" NOWAIT
ENDIF
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform