Re: Question about setting Command Line Arguments from Project Properties

From: Chris, Master of All Things Insignificant (chris_at_No_Spam_Please.com)
Date: 12/21/04


Date: Tue, 21 Dec 2004 16:20:27 -0600

You are mixing two different concepts. You can not do command line
arguments for compile time conditions. The code is already compiled and the
path of execution is already decided. I think you need to look at
condtional compilation contraints in teh Build section of configuration
properties.

Hope it helps
Chris

<rforman1@optonline.net> wrote in message
news:1103660512.376340.86210@c13g2000cwb.googlegroups.com...
>I have found many threads with this question asked and ostensibly
> answered, but none with an example of how exactly to do it. Help! I
> know that in order to set up the values of command line arguments from
> within the IDE, I go to Project Properties, Configuration Properties,
> and then the text box labeled "Command Line Arguments" under the label
> "Start Options." But what exactly do I put into that text box?
>
> What I want to do is set up a custom conditional-compilation variable
> that will act as a boolean, suppose I want to call it Test1, then I
> want to be able to use this code:
>
> #If test1 then
> messagebox.show "yes"
> #else
> messagebox.show "no"
> #End if
>
> ....so in order to define that "variable" or compilation constant I
> guess would be the right term, and set its value (let's say I want to
> set it True), what do I type into the Command Line Arguments text box?
> I've tried these, stabbing from what examples I could find but nothing
> happens:
>
> test1
> /test1
> test1=true
> test1=-1
>
> ....but it never seems to evaluate to True in the code statement. Am I
> close? (Also, by setting the variable in the IDE this way, it should
> take effect when I run my app in the IDE by pressing F5, right?, I
> mean, it's not like I have to compile to an .exe and then run that .exe
> to get it to take effect?)
>
> Thanks very much.
>
> richforman
>



Relevant Pages

  • Re: Solution Build question / issue....
    ... Both compiles are in Release mode, IDE and command line. ... What we did is in the Support DLL there are three calls to the HTTPContext ... compile from the IDE the variables do get set. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: can eclipse be configured to work with msjava projects?
    ... >> If you can compile this project from the command line, ... >> configure your IDE to work with, compile and jar the project. ... Eclipse, NetBeans, TextPad, Emacs.., and compile it either ...
    (comp.lang.java.programmer)
  • Solution Build question / issue....
    ... When we compile the project in the IDE everything works great, ... the application works the support DLL gets the current context stuff and ... Here are the base options we use on the command line since we use a RSP file. ... IDE is injecting into the DLL as it is also 4 K smaller when we compile on ...
    (microsoft.public.dotnet.framework.aspnet)
  • Project Build Issues (Weird)
    ... When we compile the project in the IDE everything works great, ... the application works the support DLL gets the current context stuff and ... Here are the base options we use on the command line since we use a RSP file. ... IDE is injecting into the DLL as it is also 4 K smaller when we compile on ...
    (microsoft.public.dotnet.general)
  • Re: Problem in calling c programs and compiling them in tcl/tk
    ... Are you using Tcl's glob command to do this? ... using exec gcc filename.c and later exec ./a.out filename.c. ... the execution of a command that might generate a Tcl error. ... i can call a c program and compile it? ...
    (comp.lang.tcl)

Quantcast