Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
P

Petruza

@Petruza
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • (C++/win32) How to call an external console-mode exe, without showing the console window, and optionally capturing the output?
    P Petruza

    ( lang: C/C++. platform: windows ) Hi, I want to do the following from my win32 app (could be mfc or whatever): 1) Call php.exe, send as command line parameter the name of a .php script to execute. 2) The console window must not show up. 3) (optional) Grab php's output. An alternative to 3) would be executing something like "php.exe script.php > temp_output.html" and then reading temp_output.html I've tried ShellExecute(), CreateProcess() and System(), all of which show the console window, and with none of them I've been able to capture the process' output. Any [ hints | tutorials | code | help ] would be appreciated! Thanks!

    C / C++ / MFC c++ php html tools help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups