Skip to content

Can't run the project from .exe to give the args #24

Closed Answered by MuhammadSulaiman001
m-hilani asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @m-hilani..

  1. As mentioned here, You should add the path to PATH env variable... you are adding the path as new variable (name-value), this is wrong.
    Find the name PATH in the list of system variables, click Edit, then click New and add the path.
  2. You have to use int main(int argc, chear* argv[]) declaration.. please try passing the args in a new empty project, it should work (the exception might be thrown due to some other initialization code before the execution reach the main function).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by m-hilani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants