Solved

URL question!!!

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 49
Expand to include initial dialog with two choices. 9 78
only14 challenge 19 76
tripleUp challenge 7 79
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

777 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