How to open localhost in MFC? (Very Urgent...........) [modified]
-
Hi All, Im having sam.txt file in my Tomcat path.I need to download this file throw IE or Mozilla Firefox using MFC. URL is: http://localhost:8080/sample/Upload\_Files/sam.txt I dont know how to open throw MFC. Pls Help me........... Thanks & Regards, Anitha
modified on Wednesday, December 17, 2008 2:12 AM
-
Hi All, Im having sam.txt file in my Tomcat path.I need to download this file throw IE or Mozilla Firefox using MFC. URL is: http://localhost:8080/sample/Upload\_Files/sam.txt I dont know how to open throw MFC. Pls Help me........... Thanks & Regards, Anitha
modified on Wednesday, December 17, 2008 2:12 AM
I'm not sure if I got you right, but something like this will launch the page in your default browser:
ShellExecute(NULL, NULL, "http://localhost:8080/sample/Upload\_Files/sam.txt", NULL, NULL, SW_SHOWNORMAL);
Note that you don't need MFC for this - see ShellExecute[^] at MSDN.
-
Hi All, Im having sam.txt file in my Tomcat path.I need to download this file throw IE or Mozilla Firefox using MFC. URL is: http://localhost:8080/sample/Upload\_Files/sam.txt I dont know how to open throw MFC. Pls Help me........... Thanks & Regards, Anitha
modified on Wednesday, December 17, 2008 2:12 AM
-
Hi All, Im having sam.txt file in my Tomcat path.I need to download this file throw IE or Mozilla Firefox using MFC. URL is: http://localhost:8080/sample/Upload\_Files/sam.txt I dont know how to open throw MFC. Pls Help me........... Thanks & Regards, Anitha
modified on Wednesday, December 17, 2008 2:12 AM
-
I'm not sure if I got you right, but something like this will launch the page in your default browser:
ShellExecute(NULL, NULL, "http://localhost:8080/sample/Upload\_Files/sam.txt", NULL, NULL, SW_SHOWNORMAL);
Note that you don't need MFC for this - see ShellExecute[^] at MSDN.
Hi, I need to download this file.
-
Hi All, Im having sam.txt file in my Tomcat path.I need to download this file throw IE or Mozilla Firefox using MFC. URL is: http://localhost:8080/sample/Upload\_Files/sam.txt I dont know how to open throw MFC. Pls Help me........... Thanks & Regards, Anitha
modified on Wednesday, December 17, 2008 2:12 AM
AnithaSubramani wrote:
(Very Urgent...........)
Why?
AnithaSubramani wrote:
.I need to download this file throw IE or Mozilla Firefox using MFC.
Is it mandatory to download the file that way...
You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_
-
Hi All, Im having sam.txt file in my Tomcat path.I need to download this file throw IE or Mozilla Firefox using MFC. URL is: http://localhost:8080/sample/Upload\_Files/sam.txt I dont know how to open throw MFC. Pls Help me........... Thanks & Regards, Anitha
modified on Wednesday, December 17, 2008 2:12 AM
AnithaSubramani wrote:
Hi, I need to download this file.
Do you need to CInternetFile class?
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
Hi, I need to download this file.
Maybe the CInternetSession[^] class will help you. The OpenURL function of this class opens any Internet file and returns a CStdioFile object, which you can use as a normal file object. If you want to save the file, simply read from this file and write into another file.
-
Hi All, Im having sam.txt file in my Tomcat path.I need to download this file throw IE or Mozilla Firefox using MFC. URL is: http://localhost:8080/sample/Upload\_Files/sam.txt I dont know how to open throw MFC. Pls Help me........... Thanks & Regards, Anitha
modified on Wednesday, December 17, 2008 2:12 AM
Have a look at URLDownloadToFile()[^]. Well, check out this article too - Using Internet Explorer to download files for you[^]. Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
Hi, I need to download this file.
-
AnithaSubramani wrote:
(Very Urgent...........)
Why?
AnithaSubramani wrote:
.I need to download this file throw IE or Mozilla Firefox using MFC.
Is it mandatory to download the file that way...
You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_
Yes