parameters

GhostScript command line parameters to convert EPS to PDF

Just installed GhostScript 8.54 for Windows. Does anyone know of the minimum parameters to pass to gswin32c.exe to make it convert, say, someFile.eps to someFile.eps.pdf? ...

Stored procedure paramters in SSRS double up

Working with SSRS and a SQL 2000 source, I have a stored procedure that takes three parameters and returns a result set. I have a dataset with the Command Type set to StoredProcedure and the procedure name in the Query String. When I attempt to execute the procedure in Visual Studio/BIDS, the Define Query Parameters dialog box presents w...

Adding values from file to a hash type structure in C++

I have a space separated file which contains some key->value pairs. These are to be loaded to a structure of the type given below: #define FV_PARAM1 "A" #define FV_PARAM2 "B" parameter_t & parameterFeatureVector ( parameter_t & param, int param1, int param2, ) { param.addParam(FV_PARAM1, par...

Problem with default values for Reporting Services parameters

I have a SQL 2005 Reporting Services report that has several report parameters. One of them is called IsActive and is of type Boolean. The parameter is hidden and set to allow null values. For its default values settings, I have it set to null. In my application that has the reportviewer control, I have logic that decided whether or ...

T4 Confusion

I think I understand the basic principals of T4 but I'm having a hard time figuring out how to apply it to my particular situation. I have an application that display lists of objects of some kind - doesn't matter what. I want to allow the users to select 1 or more of these objects and submit them to any template. The template could g...

Powershell Command Processing (Passing in Variables)

I'm creating a Powershell script to deploy some code and part of the process is to call a command-line compression tool called RAR.EXE to back-up some folders. I'm attempting to dynamically build out the parameters and then have powershell call the command with the variables but I'm running into trouble. It isn't working... Run the fo...

Simulation for DIY in Physics

I am trying to build a software for college kids to learn physics concepts through experiemnt. e.g. try different angles to hit a moving object (to understand theory of projectiles); have moving bodies of varying speeds/ mass collide to understand collision better etc. Need to build realistic experiments( more 2D/3D look and feel). Is th...

How to create/run a .exe from a program? (C++)

Is it possible (and if so, how) to write a program in C++ that takes parameters, then run that program from another C++ program. Ie: I can create a function that adds two numbers: int add(int a,int b){return a+b;} Is it possible to do the same thing, except instead of a function, a separate C++ .exe? EDIT: Since a lot of people don...

What is wrong with this setup?

I created a program called test: #include<stdlib.h> #include<iostream> int main() { std::cout<<system("..\\add\\debug\\add.exe 4 8"); while(true); return 0; } add.exe consists of #include<stdlib.h> int main(int argc,char **argv[]) { int n=((unsigned)argv[1]); int m=((unsigned)argv[2]); return(n+m); } so when...

Deploying a WebService in glassfish with init parameters

I've created a WebService using the JAX-WS API. This service runs without any problem using an Endpoint class. main(String args[]) { (...) MyService service=new MyService(); service.setParam1("limit=100"); service.setParam2("hello"); service.setParam3("max-value=10"); Endpoint endpoint = Endpoint.create(service); endpoint.publish("http:...

PHP Class construct with three optional parameters but one required?

So basically I understand this ... class User { function __construct($id) {} } $u = new User(); // PHP would NOT allow this I want to be able to do a user look up with any of the following parameters, but at least one is required, while keeping the default error handling PHP provides if no parameter is passed ... class User { ...

bash script parameters

I need to write a bash script, and would like it to parse unordered parameters of the format: scriptname --param1 <string> --param2 <string> --param3 <date> Is there a simple way to accomplish this, or am I pretty much stuck with $1, $2, $3? ...

Stored proc Output parameter + Select not passing back output parameter

Hi I have a stored procedure that returns two recordsets which i call using GetReader. I iterate the first, call IDataReader.NextResult(), then iterate the second. I assign values to output parameters in the sp, but when i check the values after finishing with my reader, my output parameters are null. Looks like a bug. I don't want to ...

asp.net :how to use eventargs for parameter passing on button onclick?

i have seen some code in which people pass parameter through commandParameter Property of web control.then what is use of eventargs. ...

There's named parameters, and then there's...

Since named parameters are those parameters that are identified by their explicit name, instead of their ordering, what's the name of their cousins without names, the ones that are identified merely by the order? Anonymous parameters? Unnamed parameters? Do they have a name to begin with? ...

thread with multiple parameters

Does anyone know how to pass multiple parameters into a Thread.Start routine? I thought of extending the class, but the C# Thread class is sealed. Here is what I think the code would look like: ... Thread standardTCPServerThread = new Thread(startSocketServerAsThread); standardServerThread.Start( orchestrator, initializeMembe...

Default template parameter in constructor

So I have this piece of code and out of convenience I want the default parameter for its constructor be of the int kind and 0. (I have more parameters in a class of my project and one of them is optional and I don't want to write the constructor twice because its big) class mama{ public: template<typename x> mama(x i=int(0)){} }...

VB.NET, Call an executable with parameter by a macro.

I have an application that used Macro. In this macro I would like to call an external executable like this: SYSTEM( "C:\Programme\Transform.exe" , "C:\Programme\Vectors.txt" , "C:\Programme\Vectors_Compensate.txt", "C:\Programme\Vectors_Final.txt" ) This executable reconstruct a modified file according to a...

Passing a backing bean instance as parameter for another backing bean method

Hey, After the user fills my backing bean with info through the forms, I want to process the instance in Java code (such as JAXB marshalling). So at the moment i'm doing this like so: <% OtherBean.method(myBackingBean); %> which is - if i'm right - not quite an up to date solution :) So how can I make this happen in a 'better' way? ...

Passing default parameter value vs not passing parameter at all?

Here's what I want to do: Given a table PeopleOutfit (id int primary key, boots int, hat int) And a stored procedure UpdateOutfit @id int, @newBoots int = null, @newHat = null Is there a way to tell whether I called this procedure as exec UpdateOutfit @id=1, @newBoots=null, @newHat=5 effectively telling that the person with id ...