Author Topic: Passing command line arguments in Windows 7  (Read 8584 times)

djArjay

  • Guest
Passing command line arguments in Windows 7
« on: February 12, 2011, 12:16:26 pm »
Hows it goin guys.  I am pretty new to using code blocks.  I've searched for a answer to passing command line arguments in Windows 7 through code blocks.  Can someone help me out with a step by step.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Passing command line arguments in Windows 7
« Reply #1 on: February 12, 2011, 01:11:23 pm »
menu->project->set program's arguments
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

otttx33

  • Guest
Re: Passing command line arguments in Windows 7
« Reply #2 on: February 13, 2012, 02:31:37 pm »
No, I have the same problem. It doesn't work

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Passing command line arguments in Windows 7
« Reply #3 on: February 13, 2012, 03:05:04 pm »
It doesn't work
Tell us how to reproduce your problem.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Passing command line arguments in Windows 7
« Reply #4 on: February 13, 2012, 04:38:37 pm »
Tell us how to reproduce your problem.
Dito.

BTW: Make sure you have selected the right target where you setup the command line arguments - you can setup these for each target separately.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ