Thread: Problems with Shell Execute

  1. #1
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138

    Problems with Shell Execute

    I am using ShellExecute in a program and am having some serious speed problems. The program launches the default internet browser and goes to a website. The only problem is that it is taking an inordinate amount of time to do this. After the first call to open the website, the loading time isn't as severe. But it literally takes minutes to launch the browser on my 333mhz box using IE the first time.

    P.S. I am opening the website by using the web site address as the file name. However, I have also tried opening IE specifically with the parameter being set as the website's address.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Try running the code on a different machine.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    lol. My only solution would be for M$ to make IE faster All kidding aside ShellExecute() is pretty fast. You could use CreateProcess() but I don't think that will be a quantum leap in speed. I think this is more do to the slow nature of IE loading rather than the speed that a process is spawned.

  4. #4
    I would say that you should use shellExucute() or CreateProcess() after you CreateThread(). That is create a new thread for the process that should make it seem faster but since you say it is only on the first load up it's most likely IE's problem and not your code. IE loads up all the ActiveX and plugins on the first time and maybe that's where it's hanging up.
    My Avatar says: "Stay in School"

    Rocco is the Boy!
    "SHUT YOUR LIPS..."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  2. Implementing ! functionality for Korn shell
    By Yasir_Malik in forum Tech Board
    Replies: 1
    Last Post: 06-13-2004, 05:27 PM
  3. Shell execute... but piping
    By nickname_changed in forum C++ Programming
    Replies: 2
    Last Post: 05-21-2003, 07:39 AM
  4. Shell script- regression testing
    By kiss2rvp in forum Linux Programming
    Replies: 1
    Last Post: 05-19-2002, 04:15 AM
  5. System.ini Shell Problems
    By (TNT) in forum Windows Programming
    Replies: 2
    Last Post: 08-26-2001, 01:05 PM