Command line arguments in C++ Release configuration in Visual Studio 2008

A

Afshin

Hello all,

I am struggling with defining command line arguments in C++ Release configuration in Visual Studio 2008? I can define command arguments in Debug configuration but cannot do the same in release configuration. Is there any limitation in defining command arguments in Release mode? Incidentally, I use CPLEX Concert Technology in my C++ code which is required to be compiled in Release mode.

Thanks in advance for any help.

Regards,
Afshin
 
N

n.musolino

Are you saying that your program is not correctly parsing the arguments you pass to it? Or that you don't know how to pass arguments in Visual Studio?

If the latter, it's not really a C++ language question, and you will receive better answers by posting to a Visual Studio forum.

Have you tried running your program from the command line?
 
A

Afshin

Are you saying that your program is not correctly parsing the arguments you pass to it? Or that you don't know how to pass arguments in Visual Studio?



If the latter, it's not really a C++ language question, and you will receive better answers by posting to a Visual Studio forum.



Have you tried running your program from the command line?

My problem is indeed twofold: don't know how to set arguments in Visual Studio and not been able to pass them on in command line which seems doesn't recognise the arguments in release mode. For the former, I will try Visual Studio forum but any clue as to the latter?

Thanks,
Afshin
 
S

schwarz45

My problem is indeed twofold: don't know how to set arguments in Visual Studio and not been able to pass them on in command line which seems doesn'trecognise the arguments in release mode. For the former, I will try VisualStudio forum but any clue as to the latter?

If your code is recognizing the command line arguments in debug mode, then you have coded it correctly. If not, then we will need to see some code tohelp you determine why.

If your code is not recognizing the command line arguments when you run it from the command line, we will need to see the exact command you are issuing (cut and paste, do not retype) to help you determine why.

The Microsoft Visual C++ forum has several threads that discuss how to set up the command line arguments. Google search can probably find discussionsthere and elsewhere.
 
G

Geoff

You must duplicate your command line parameters in the IDE for both
builds. Pay attention to the build configuration setting when entering
the command line parameters in the Properties dialog for the project.
 
A

Afshin

If your code is recognizing the command line arguments in debug mode, then you have coded it correctly. If not, then we will need to see some code to help you determine why.



If your code is not recognizing the command line arguments when you run it from the command line, we will need to see the exact command you are issuing (cut and paste, do not retype) to help you determine why.



The Microsoft Visual C++ forum has several threads that discuss how to set up the command line arguments. Google search can probably find discussions there and elsewhere.

Thanks!
 
A

Afshin

If your code is recognizing the command line arguments in debug mode, then you have coded it correctly. If not, then we will need to see some code to help you determine why.



If your code is not recognizing the command line arguments when you run it from the command line, we will need to see the exact command you are issuing (cut and paste, do not retype) to help you determine why.



The Microsoft Visual C++ forum has several threads that discuss how to set up the command line arguments. Google search can probably find discussions there and elsewhere.

Thank you Geoff!
 
A

Afshin

You must duplicate your command line parameters in the IDE for both

builds. Pay attention to the build configuration setting when entering

the command line parameters in the Properties dialog for the project.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,954
Messages
2,570,116
Members
46,704
Latest member
BernadineF

Latest Threads

Top