473,387 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Go to website in c++

134 100+
how could you make the program go to a website like google.com?
i dont care if it opens it in the default browser or if you have to type it in, just somehow open a webpage.
i tried to make the program create a .URL and the run that w/ System(); but that didnt work.
is there a way to do it (if so, how)

thanks
-nate
Jun 19 '07 #1
6 5013
gpraghuram
1,275 Expert 1GB
Hi,
Do u want to open the internet explorer window with a specified address from ur c++ program?
If yes the the use system command and pass this argument to it
Expand|Select|Wrap|Line Numbers
  1. system("iexplore www.thescripts.com");
  2.  
This will work for you.
Raghuram
Jun 20 '07 #2
lumpybanana247
134 100+
Hi,
Do u want to open the internet explorer window with a specified address from ur c++ program?
If yes the the use system command and pass this argument to it
Expand|Select|Wrap|Line Numbers
  1. system("iexplore www.thescripts.com");
  2.  
This will work for you.
Raghuram

i tried that and what i got was a blank cmd window for a split second- then nothing happend. im using windows xp if that makes a difference

thanks

ps "iexplore" is not in my WINDOWS folder.
Jun 20 '07 #3
lumpybanana247
134 100+
now i did put iexplore in my system directory manually and it works perfect (Thank you very much!) but do most ppl have iexplore in their 'windows' folder? none of my computers do.
Jun 20 '07 #4
weaknessforcats
9,208 Expert Mod 8TB
i tried that and what i got was a blank cmd window for a split second- then nothing happend. im using windows xp if that makes a difference

thanks

ps "iexplore" is not in my WINDOWS folder.
That split-second blank screen was your program executing. Then it shout down and took the ie session with it.

Put a cin.get() in the code to keep wh command window up. Then you shoueol see the ie session take off.

As for your ie not being in a specific place, create a string with the path and use that for the system call.
Jun 20 '07 #5
lumpybanana247
134 100+
That split-second blank screen was your program executing. Then it shout down and took the ie session with it.

Put a cin.get() in the code to keep wh command window up. Then you shoueol see the ie session take off.

As for your ie not being in a specific place, create a string with the path and use that for the system call.
Thank you very much gpraghuram and weaknessforcats- you helped me a lot.
I got it all worked out. :-)
Jun 21 '07 #6
niskin
109 100+
If you want to use the default browser without having to use IE then do this:

Expand|Select|Wrap|Line Numbers
  1. system("start /max /wait http://www.google.com");
Jun 29 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ohaya | last post by:
Hi, I've been researching this, and I'm not sure if what I'm trying to do is possible, but I thought that I'd ask: I have two webservers/websites. The first webserver/website is running...
3
by: Newbie | last post by:
I have a C# asp.net webform with a Link Button to a website but it's not opening the website correctly. It's saying "The page cannot be found". But the website is loading when I use IE. Below is...
8
by: jacky kwok | last post by:
Dear All: In VS2005 WebSetup installer InstallAddress dialog, there is field to let user to select which website to install the webapp (if there are more than one WebSite in the IIS). I want...
17
by: stubbsie | last post by:
Hi, I have redesigned our official public government website in .net and it has taken me a few months to redo. I have been the sole designer of the website from its humble beginnning a few years...
2
by: crferguson | last post by:
I'm having a really odd issue. Recently my company has upgraded our data server. For a couple of months I'm having to host two versions of the same website on our webserver until the new data...
19
by: cpnet | last post by:
I'm using VS2005, C#, ASP.NET 2.0. I'm trying to create a report using SQL Reporting Services (to be used in local mode so I don't have to deal with SQL Server). When I create a new report in my...
7
by: Atul | last post by:
Hi Theres a website that books hotels . user enters the information and according to that results are displayed to the user.Let it be website A. Now I want to create a new project with...
3
by: Mintyman | last post by:
Hi, I have 2 fields in a database: 'email' and 'website'. In the majority of cases, the website field is not populated even though the email address is. In 90% of cases, the website will be...
5
by: daveh551 | last post by:
What, from a high level point of view, is the difference (in Visual Studio 2005) between Website (accessed with Open Website or Create Website from the StartPage) that is an ASP.NET Website, and a...
2
by: Wayne Smith | last post by:
Applies to: Visual Studio 2008 Professional Hi everyone, I'm in the middle of creating a website with VS2008 and I'm trying to integrate a user registration/login section on the website but I've...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.