Maybe this WinInet API function could be useful:
http://msdn.microsoft.com/
Notice you have to include "wininet.h" and must link Wininet.lib
You can use it as:
InternetCheckConnection(NU
Main Topics
Browse All TopicsHi to all.
I'm working on some application with Visual C++.
I need to download file from ftp server.
I'm using this code:
"
CInternetSession mysession;
CFtpConnection* pFtpConn = mysession.GetFtpConnection
pFtpConn->GetFile("name of the file", "name of the file", FALSE))
"
Everything works fine when "Work offline" in Internet explorer is unchecked. (File->Work offline in IE).
but when work offline is checked it does't work.
Can I change work offline to work online from my application and how.
I hope you understand my quastion.
Thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Maybe this WinInet API function could be useful:
http://msdn.microsoft.com/
Notice you have to include "wininet.h" and must link Wininet.lib
You can use it as:
InternetCheckConnection(NU
Also you can try with CInternetConnection::SetOp
It will work with IE5 - IE6 only
http://msdn.microsoft.com/
I tryed
InternetCheckConnection(NU
but it doesn't work.
Also I tryed INTERNET_OPTION_IGNORE_OFF
code:
CInternetSession mysession;
mysession.SetOption(INTERN
but it gives me an error message:
error C2065: 'INTERNET_OPTION_IGNORE_OF
I'm using Visual c++ 6.0
OS Windows 2000
IE 6
I included "wininet.h" and link Wininet.lib
Now I don't have any error messages, but when I start application I get
Debug Assertion Failed!
dialog with abort , retry, ignore.
Maybe I'm using CInternetSession::SetOptio
code is the same:
CInternetSession mysession;
mysession.SetOption(INTERN
Thanks for trying to help me.
Business Accounts
Answer for Membership
by: AlexFMPosted on 2004-11-20 at 00:09:48ID: 12632517
http://support.microsoft.c om/default .aspx?scid =KB;EN- US; q195730