Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 966813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:13:06+00:00 2026-05-16T02:13:06+00:00

I am confused by the first 2 params, module and command-line. I find unless

  • 0

I am confused by the first 2 params, module and command-line. I find unless I populate both it doesn’t work right, and it seems the documentation says otherwise.

I want to call “testApp.exe param1=123”

The only way I found that works is:

CreateProcess("testApp.exe","testApp.exe param1=123",...

I thought either of these should work, but no luck so far:

CreateProcess("testApp.exe","param1=123",...
CreateProcess(NULL,"testApp.exe param1=123",...

I’ve read the msdn docs a few times so what am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T02:13:07+00:00Added an answer on May 16, 2026 at 2:13 am

    The first parameter is the name of the executable to run. The second parameter is the command line. The command-line need not contain the name of the executable, if it doesn’t however and you pass something like

    "param1 param2"
    

    then in your program, argv[0] == "param1" and argv[1] == "param2". Therefore, you usually have to pass the name of the executable as the first value to satisfy the program’s requirements, not Windows’.

    If you do not pass the executable name, it is extracted from the first value in the command line string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The first one doesn't work. But the second one works,which make me confused.. Could
At first I was confused why both of the method calls in the constructor
I have found following code on net. I am confused about the first line.
I'm writing my first Rails app and I'm confused by a method call that
I am building my first Symfony2 project and I may be confused on the
i'm writing my first MATLAB O-O application and i'm confused about the implementation of
I am working on my first segue, and I am a bit confused. I
I'm confused. I'm trying to loop though 2 files looking at the first token
Switching to GCC for the first time, and I'm getting a bit confused by
At first I was a little confused about what was happening with the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.