Solved

URL question!!!

Posted on 2000-04-24
3
163 Views
Last Modified: 2013-11-20
In my programme, I have one URL and that URL can be download some files. I want to know how can I pass this URL to the browser and then show a dialog to save in which path?  If not using "broswer" to download the files, what else I can do if I only have a URL in my programme.
0
Comment
Question by:makoto_liang
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 100 total points
ID: 2746397
Call ShellExecute(), and pass your URL as the argument.  The operating system will activate the default browser and the browser will try to open the URL.

That's pretty much all you need to do!

..B ekiM
0
 

Author Comment

by:makoto_liang
ID: 2749967
hi, can you give me more detail how to use this function to open the browser if i have a URL.

I don't know how to put right parameters in that function.

HINSTANCE ShellExecute(
    HWND hwnd,
    LPCTSTR lpOperation,
    LPCTSTR lpFile,
    LPCTSTR lpParameters,
    LPCTSTR lpDirectory,
    INT nShowCmd
);
0
 
LVL 11

Expert Comment

by:mikeblas
ID: 2749991

ShellExecute(NULL, NULL, "http://www.experts-exchange.com", NULL, NULL, 0);


It's that simple.

..B ekiM
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Separate into files by filename 12 87
How to know only "File created" with EventLog 3 35
no14 challenge 14 70
sumHeights2  challenge 7 115
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question