CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Location
    LA, USA
    Posts
    23

    Shell or CreateProcess - which is better

    I need to start a program from within VB. Which is a better way to do it - using function Shell or Create Process? Why?


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Shell or CreateProcess - which is better

    take a look at the parameters for CreateProcess. There are many!
    Thus, if you need anything you cannot do with Shell use CreateProcess or ShellExecute or ShellExecuteEx. e.g. you can pass an environment string to the child process with CreateProcess.

    Shell is easier to use, because you don't need an API Declare statement.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured