How to open 3 different tabs (google,bing,yahoo) and search for a specific topic using c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to open 3 different tabs (google,bing,yahoo) and search for a specific topic using c++

2nd Oct 2018, 3:44 AM
Mujahid Faraz Siddiqui
Mujahid Faraz Siddiqui - avatar
6 Answers
+ 1
Where you want to open the tabs using c++?
2nd Oct 2018, 5:29 AM
Sergey Ushakov
Sergey Ushakov - avatar
+ 1
Thanks alot for lookong in to the matter. In Google Chrome and yahoo browser.
2nd Oct 2018, 5:48 AM
Mujahid Faraz Siddiqui
Mujahid Faraz Siddiqui - avatar
+ 1
Browsers are not executes c++ code. You can try to write plugin for it. In case you need to download some pages and process their content you don't need a browser application. You can use some library that can perform http requests. For example CURL can do it.
2nd Oct 2018, 6:07 AM
Sergey Ushakov
Sergey Ushakov - avatar
+ 1
It could be done by the command line. You can launch a browser with URL as an argument. It means that you need to know the full path to the browser executable. Unfortunately there is no standard way to start an application from c++. You can use CreateProcess system call on the Windows OS.
2nd Oct 2018, 11:31 AM
Sergey Ushakov
Sergey Ushakov - avatar
0
what I mean is while the c++ program is being executed i should automatically get redirected to browser and the Web page should open
2nd Oct 2018, 6:48 AM
Mujahid Faraz Siddiqui
Mujahid Faraz Siddiqui - avatar
0
Thank you for replying. Will you be kind enough to give an example for the same.
2nd Oct 2018, 11:51 AM
Mujahid Faraz Siddiqui
Mujahid Faraz Siddiqui - avatar