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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Create child process

Create child process

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    whofmans
    wrote on last edited by
    #1

    Hi, I need to start a program with errormode=SEM_NOALIGNMENTFAULTEXCEPT. I have made a small launcher program for this purpose. See here the code: SetErrorMode(SEM_NOALIGNMENTFAULTEXCEPT); PROCESS_INFORMATION pi; CreateProcess(TEXT("C:/app.exe"), NULL, NULL, NULL, false, 0, NULL, NULL, NULL, &pi); With this code starts the application app.exe, but i am not sure that it is runnend as child. It need to be a child, otherwise it doesn't use the right errorcode. Do you know if i have done it right? If not, how can i start a application as child process? Or is there another way todo it? Thank you. Best regards, Willem

    D 1 Reply Last reply
    0
    • W whofmans

      Hi, I need to start a program with errormode=SEM_NOALIGNMENTFAULTEXCEPT. I have made a small launcher program for this purpose. See here the code: SetErrorMode(SEM_NOALIGNMENTFAULTEXCEPT); PROCESS_INFORMATION pi; CreateProcess(TEXT("C:/app.exe"), NULL, NULL, NULL, false, 0, NULL, NULL, NULL, &pi); With this code starts the application app.exe, but i am not sure that it is runnend as child. It need to be a child, otherwise it doesn't use the right errorcode. Do you know if i have done it right? If not, how can i start a application as child process? Or is there another way todo it? Thank you. Best regards, Willem

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      What do you mean by "child process?" Once a process has been started, it is a process in its own right. Both processes are free to do what they will without affecting/impacting the other.


      "One must learn from the bite of the fire to leave it alone." - Native American Proverb

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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