Results 1 to 15 of 15
  1. #1
    aanthonyz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Hitler's Minivan
    Posts
    483
    Reputation
    27
    Thanks
    83
    My Mood
    Relaxed

    C++ and the Internet

    Is it possible to make a C++ program that will receive information and then search it in google or youtube?
    "The best way to predict your future is to create it."

    Contributions I made:

    DirectX E-Books
    Hacking Tools
    Hacking into a PC

    Need Help?
    Send me a PM, or send me a email at : aanthonyz10@gmail.com

    Click My Dragon:


  2. #2
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Obviously not.
    Ah we-a blaze the fyah, make it bun dem!

  3. The Following 2 Users Say Thank You to Hell_Demon For This Useful Post:

    Stephen (04-05-2011),why06 (04-04-2011)

  4. #3
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    Quote Originally Posted by Hell_Demon View Post
    Obviously not.
    lol tell me your trolling

    of cource they is a way... you asked a stupid question.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  5. #4
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    Quote Originally Posted by aanthonyz View Post
    Is it possible to make a C++ program that will receive information and then search it in google or youtube?
    It really isn't too difficult to do only that retreaving information from more complex websites in that manner could be a little difficult. Check to see if they offer an API to do whatever you want to achieve.

    Otherwise you need to construct a basic http client - .Net has a perfect WebClient class for this. However, writing an http client for these purposes isn't too difficult either. You would need to implement the HTTP protocol which is not too difficult only that parsing the headers in a safe and compatible manner can be a pain without access to a text-parsing engine such as regex.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  6. #5
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Quote Originally Posted by topblast View Post


    lol tell me your trolling :D

    of cource they is a way... you asked a stupid question.
    It's not a troll, it's sarcasm :)

  7. #6
    SERG's Avatar
    Join Date
    May 2010
    Gender
    female
    Posts
    41
    Reputation
    8
    Thanks
    8
    You mean a search engine?

  8. #7
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Quote Originally Posted by SERG View Post
    You mean a search engine?
    More like posting to a search engine and formatting the results

  9. #8
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    Yes.. you can have it open up internet then Google (errr w/e...).

    Then make it something like If https://Google.com.Opened = true Then
    'Right here you can add a keydown function to type what you want to search... i.e. Textbox1.Text
    End If


    EDIT: Or For google... you SHOULD do this:

    Button1(stuff) 'Search button
    "https://www.google.com/#sclient=psy&hl=en&q=" + TextBox1.Text + "&aq=f&aqi=g-s5&aql=&oq=&pbx=1&fp=4e1575e2abc51ac9"
    End Sub

    Basically Most searches go by that format... then it will change the link to w/e. So That will bring you to what you want to search for in TextBox1.
    Last edited by CAFlames; 04-04-2011 at 04:20 AM.

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  10. #9
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by CAFlames View Post
    Yes.. you can have it open up internet then Google (errr w/e...).

    Then make it something like If https://Google.com.Opened = true Then
    'Right here you can add a keydown function to type what you want to search... i.e. Textbox1.Text
    End If


    EDIT: Or For google... you SHOULD do this:

    Button1(stuff) 'Search button
    "https://www.google.com/#sclient=psy&hl=en&q=" + TextBox1.Text + "&aq=f&aqi=g-s5&aql=&oq=&pbx=1&fp=4e1575e2abc51ac9"
    End Sub

    Basically Most searches go by that format... then it will change the link to w/e. So That will bring you to what you want to search for in TextBox1.
    This is not the visual gayshit section, please go away.
    Ah we-a blaze the fyah, make it bun dem!

  11. The Following 4 Users Say Thank You to Hell_Demon For This Useful Post:

    'Bruno (04-04-2011),Melodia (04-04-2011),Stephen (04-05-2011),whit (04-04-2011)

  12. #10
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by Hell_Demon View Post
    This is not the visual gayshit section, please go away.



    But anyways are you wanting to retrieve info from the internet or The user of the Program then search it ?
    Last edited by whit; 04-04-2011 at 08:09 AM.

  13. #11
    aanthonyz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Hitler's Minivan
    Posts
    483
    Reputation
    27
    Thanks
    83
    My Mood
    Relaxed
    Basically, lets say I want to search "BBQ"(I was hungry...)

    They would open up my program, type in what they would want and it would then open up a google search page for tacos
    "The best way to predict your future is to create it."

    Contributions I made:

    DirectX E-Books
    Hacking Tools
    Hacking into a PC

    Need Help?
    Send me a PM, or send me a email at : aanthonyz10@gmail.com

    Click My Dragon:


  14. #12
    Melodia's Avatar
    Join Date
    Dec 2009
    Gender
    female
    Posts
    2,608
    Reputation
    276
    Thanks
    1,662
    My Mood
    Dead
    Quote Originally Posted by aanthonyz View Post
    Basically, lets say I want to search "BBQ"(I was hungry...)

    They would open up my program, type in what they would want and it would then open up a google search page for tacos
    Very Much Easy.

    What ? You want to make munnies on Google Search/Ads ?
    Love You All~

  15. #13
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    Quote Originally Posted by Hell_Demon View Post
    This is not the visual gayshit section, please go away.
    You got a problem kid? My first thing was retarded but the second one works (I was giving VB Example... like they can do something like that in c++) . I made a google search engine that way. Have it open up the webpage in default browser:

    "https://www.google.com/#sclient=psy&hl=en&q=" + TextBox1's Text + "&aq=f&aqi=g-s5&aql=&oq=&pbx=1&fp=4e1575e2abc51ac9"

    Because That link searches google. Then the Textbox's Text would be what you search so it does work. Try it if you dont beleive me. Lets say you type in Baseball into textbox. Itll open up browser to google and search Baseball.

    Go try it.

    EDIT: I am assuming you are using form.
    Last edited by CAFlames; 04-04-2011 at 03:22 PM.

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  16. #14
    aanthonyz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Hitler's Minivan
    Posts
    483
    Reputation
    27
    Thanks
    83
    My Mood
    Relaxed
    No, this is for my robot. Basically you say "search <whatever" and it will search it in google, I want to know if that is possible by typing it first and it working then I will convert it to speech stuff
    "The best way to predict your future is to create it."

    Contributions I made:

    DirectX E-Books
    Hacking Tools
    Hacking into a PC

    Need Help?
    Send me a PM, or send me a email at : aanthonyz10@gmail.com

    Click My Dragon:


  17. #15
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Quote Originally Posted by Hell_Demon View Post
    Obviously not.
    Quote Originally Posted by Hell_Demon View Post
    This is not the visual gayshit section, please go away.
    Lol. Wow HD is on a roll today.

    Quote Originally Posted by aanthonyz View Post
    No, this is for my robot. Basically you say "search <whatever" and it will search it in google, I want to know if that is possible by typing it first and it working then I will convert it to speech stuff
    Yeh course it's possible. Seems what ur describing is a browser, though I know ur talking about something else. Point is its very easy to search for stuff.

    However if you want to make something that can read info online and search for google automatically, make sure to add a function that will reply back on MPGH with a lmgtfy link, for all the help vampires that don't bother searching.

    In fact let me do that right now: Windows Internet (Windows)

    No offense anthony, ur not as bad as the others, and it was a legitimate question if a bit naive.
    Last edited by why06; 04-04-2011 at 04:48 PM.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower