Is it possible (in C#) to pass an object of type HashTable as a parameter to a method?
I'm trying to, but it seems (at debug-time) impossible to reference the object (i'm getting a null reference object).
...
A program for which I do not have the source code to is executing a third-party EXE file. I'd like to find out the arguments that it is sending to the EXE file (i.e. thirdparty.exe -c "foo" -d "bar"). I do know that the initial program is written in Visual Basic.
Are there any tools that I can run that will monitor the execution call a...
Hey all,
I'm trying to write a generic function that will block out the UI while an AJAX call is made. What I'm trying to do is have a function A run any other function passed in as an argument. This is what I've got so far:
function blockWhileLoading(fn, msg)
{
if (msg == null)
{
msg = 'Please wait while the next page is loa...
Can threads have more than one argument without using a struct?
So... kind of like:
pthread_create(&file_thread, NULL, merge_thread, sortedFiles, number);
... where 'number' is the extra argument?
Thanks,
Hristo
...
I'm writing an ASP.NET(C#) application in Visual Studio 2008 and connecting to SQLExpress 2005.
While trying to update a FormView control bound to an SqlDataSource by using a parameterized stored procedure, I constantly get an error screen saying "too many arguments specified".
I have tried clearing the list and adding all the paramete...
In other words, what are the precise rules for how the Java compiler determines which overloaded method to choose to execute? I've spent a good amount of time googling and I think I'm not using the right search keywords.
public class C1 extends C2 {}
public class C2 extends C3 {}
public class C3 {}
public class Test {
public st...
button1 = tkinter.Button(frame, text="Say hi", command=print)
button2 = tkinter.Button(frame, text="foo", command=print)
button3 = tkinter.Button(frame, text="bar", command=print)
You've probably spotted the hole in my program: print can't specify arguments. This renders the whole thing useless and faulty. Obviously, having something l...
I am trying to implement a JSON-RPC solution, using a server connector object wich obtains a list of available functions from a server somehow like
NSDictionary *functions = [server
callJSONFunction: @"exposedFunctions" arguments: nil];
wich is a simplified description, since callJSONFunction actually triggers an asynchronous NS...
I have a application executable, which runs with different parameters to produce different outputs. I want to give some parameters to this from the command line parameters of the script and others will be local to the script. Usage:
./dump-output.pl <version> <folder-name> <output-file>
my $version = $ARGV[0];
my $foldername = $ARGV[1...
Possible Duplicate:
Real differences between java -server and java -client?
I've seen the argument "-server" used as a command line argument for java.exe:
java.exe -server MyClass
but no matter how hard I searched the internet I found no documentation as to what exactly it does. Can anyone explain?
...
If i were to run this code:
def function(y):
y.append('yes')
return y
example = list()
function(example)
print(example)
Why would it return ['yes'] even though i am not directly changing the variable 'example', and how could I modify the code so that 'example' is not effected by the function?
...
Can you tell me if I am correct in this question? It's a homework question, I don't want the answer. I just want to make sure that I am correct.
It is possible to declare a method that will allow a variable number of parameters.
The symbolism used in the definition that indicate that the method should allow a
variable number of paramet...
Consider the following silly Perl program:
$firstarg = $ARGV[0];
print $firstarg;
$input = <>;
print $input;
I run it from a terminal like:
perl myprog.pl sample_argument
And get this error:
Can't open sample_argument: No such file or directory at myprog.pl line 5.
Any ideas why this is? When it gets to the <> is it trying t...
I am trying to an execute a program in PHP on Windows with multiple arguments and absolute paths using a method like this:
<?php
$FLACPATH = str_replace(" ","\ ",realpath("../../encoders/flac.exe"));
$LAMEPATH = realpath("../../encoders/lame.exe");
$FILEPATH = realpath("../../encoders/01.flac");
function my_exec($cmd, $input='')
{
...
What's the best way to make a function that has pointer as argument work with boost python?
I see there are many possibilities for return values in the docs, but I don't know how to do it with arguments.
void Tesuto::testp(std::string* s)
{
if (!s)
cout << " NULL s" << endl;
else
cout << s << endl;
}
>>> t.testp...
is it possible to construct variadic arguments for function by overloading operator comma of the argument? i want to see an example how to do so.., maybe something like this:
template <typename T> class ArgList {
public:
ArgList(const T& a);
ArgList<T>& operator,(const T& a,const T& b);
}
//declaration
void myFunction(ArgList<in...
Let's say I want to do something like this
void my_printf(char *fmt,...) {
char buf[big enough];
sprintf(buf,fmt,...);
}
What is the proper way of passing the variable number of arguments directly to a function with accepts variable arguments?
...
How does printf handle its arguments? I know that in C# I can use params keyword to do something similar but I can't get it done in C ?
...
var curtext = "View large image";
function changeSrc() {
if (curtext == "View large image") {
document.getElementById("boldStuff").innerHTML = "View small image";
curtext="View small image";
} else {
document.getElementById("boldStuff").innerHTML = "View large image";
curtext = "View large image";
...
I'm trying to write a script that searches a directory for files and greps for a pattern. Something similar to the below except the find expression is much more complicated (excludes particular directories and files).
#!/bin/bash
if [ -d "${!#}" ]
then
path=${!#}
else
path="."
fi
find $path -print0 | xargs -0 grep "$@"
Obviou...