Solved

URL question!!!

Posted on 2000-04-24
3
160 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

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: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now