CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Posts
    121

    Executing a program from the application

    can someone direct me to the function which allows me to execute another program from withinh my application.

    Is it ShellExecute?
    Thank you


  2. #2
    Join Date
    May 1999
    Posts
    25

    Re: Executing a program from the application

    Should be WinExec


  3. #3
    Join Date
    May 1999
    Location
    Bogotá, Colombia
    Posts
    37

    Re: Executing a program from the application

    ShellExecute
    ShellExecuteEx
    CreateProcess

    all execute applications. It all depends on what you want to do and how much control you want over the application you want to start

    Hope this is of some help

    A


  4. #4
    Join Date
    May 1999
    Location
    Bogotá, Colombia
    Posts
    37

    Re: Executing a program from the application

    No, don't use WinExec.

    From the Win32 SDK documentation
    "Win32-based applications should use the CreateProcess function rather than this function. The WinExec function exists in Win32 to provide compatibility with earlier versions of Windows."

    A


  5. #5
    Guest

    Re: Executing a program from the application

    ::System() could be more simple than CreateProcess for small needs.
    It's ANSI moreover.


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