Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

URL question!!!

Posted on 2000-04-24
3
Medium Priority
?
168 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 300 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

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…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

721 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