Thread: is this possible?

  1. #1
    Programmer Frantic-'s Avatar
    Join Date
    Dec 2004
    Posts
    114

    is this possible?

    To have a program that opens up your main browser and loads the desired page that i state inside the code?

  2. #2
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    it is possible. Think about programs where after clicking "help" or "about", or "register the product", link you directly to their website.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  3. #3
    Programmer Frantic-'s Avatar
    Join Date
    Dec 2004
    Posts
    114
    would you know how i would do that?

    i would imagine telling the computer to open IE, but how would i make it go to the desired webpage?

  4. #4
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  5. #5
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    A quick solution would be to make a shortcut that goes to yoursite and call

    system("c:\\pathtofile\\shortcut.exe");

    in your program. system is in windows.h of course

  6. #6
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    Quote Originally Posted by MadCow257
    A quick solution would be to make a shortcut that goes to yoursite and call

    system("c:\\pathtofile\\shortcut.exe");

    in your program. system is in windows.h of course
    how is thats supposed to be used to open a default browser and bring up a webpage?
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  7. #7
    Programmer Frantic-'s Avatar
    Join Date
    Dec 2004
    Posts
    114
    hmm, that clib or w/e seems confusing, i wouldnt know how to use it.

    how do i make a short cut to load a specific webpage?

    if i were to do that, there would be no need to make a c++ program that opens ie and then loads the page, when i can just make the short cut.

    is there a way to make c++ execute dos commands?

  8. #8
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    IE accepts command-line arguments (or maybe just one, I don't really know). So you can just try system("iexplore www.google.com");

    Or whatever site you want. But they might not use internet explorer or something so it's not the greatest solution.
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  9. #9
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    how do i make a short cut to load a specific webpage?

    if i were to do that, there would be no need to make a c++ program that opens ie and then loads the page, when i can just make the short cut.
    Right-click in the folder, go to new, click shortcut. Where it asks you to type the path of the file, type http://cboard.cprogramming.com. Click next to name your shortcut, call it "CProg Forums". Click finish, and you have a shortcut that points to CProg

    >>is there a way to make c++ execute dos commands?
    system() does that for you.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  10. #10
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    how is thats supposed to be used to open a default browser and bring up a webpage?
    because that will open the shortcut which will in turn open the browser

    how do i make a short cut to load a specific webpage?
    Right Click on some unoccupied space on your screen and click new\\shortcut, then simply type the url of the site you want the shortcut to be for

    Edit
    beat
    Last edited by MadCow257; 02-01-2005 at 07:23 PM.

  11. #11
    Programmer Frantic-'s Avatar
    Join Date
    Dec 2004
    Posts
    114
    Quote Originally Posted by MadCow257
    because that will open the shortcut which will in turn open the browser


    Right Click on some unoccupied space on your screen and click new\\shortcut, then simply type the url of the site you want the shortcut to be for

    Edit
    beat
    Thanks

  12. #12
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    Quote Originally Posted by JaWiB
    IE accepts command-line arguments (or maybe just one, I don't really know). So you can just try system("iexplore www.google.com");
    that would work except my default browser is mozilla you saved yourself in the second part of your post though...
    Quote Originally Posted by MadCow257
    because that will open the shortcut which will in turn open the browser
    so you're trying to give him a solution that will work only on his machine, unless he packages a shortcut with it?
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  13. #13
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    so you're trying to give him a solution that will work only on his machine, unless he packages a shortcut with it?
    packing the shortcut isn't the issue, the problem is if it doesn't run on OS's besides windows.

  14. #14
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    >>hmm, that clib or w/e seems confusing, i wouldnt know how to use it.

    its libcURL, and it is really quite easy to use and implement...but I see that you're just waiting for code to be handed to you as you have no clue what you're doing; in that case, search google - I'm pretty sure that codeproject.com has some ready code for it.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  15. #15
    Programmer Frantic-'s Avatar
    Join Date
    Dec 2004
    Posts
    114
    if there was any documentation for windows, i would be more than willing to read it....

Popular pages Recent additions subscribe to a feed