Use an array[3] of pointers to store the vars, and pass in a 0, 1, 2 to the function, to use A B or C.
Syntax is:
int ** x
doblue ** y
int ** z
make each of your functions take a #, 0-2, to get the index of the first dimension, and then use x[func_argument][n], and so on.
That's one copy of...
OK, I have an OdbcConnection (Visuall C++ .net) object, connected to an (unknown DB Vendor) ODBC source on the machine.
How do I get a list of tables and viewes in the database that I'm connected to?
I can run queries, etc, but not get a table list.
Thanks!
If it HAS to come from Excel, I'd say you're using the wrong tool. Get VS .NET and use it, it'll be much easier.
That said, look into the Cliboard class and tutorial, they may help you.
M>
Well, if you're using apache, the root path is different than if you're logged into the machine. To see your root path, echo a system("pwd") or something to a web browser, and see if you are where you think you are.
...whole point. You pass values into a sub, then use the return value(s). Global variables suck because you don't know who's going to modify them. The way that you are doing it, you don't have to worry about that. I *always* use strict, or perl -w, for all my perl scripts, and it's a great help.
So, I've got a VC++ service.
Defined as:
namespace xy
{
public __gc class z
{
// Class code.
};
}
Now, I've got another class, in another .h/.cpp file:
namespace xy
{
public __gc class abc
{
// Class code;
};
}
The problem is, I cannot use class abc...
...re-build and re-install of the service
cpjust - Yes, I've already got that, but how do I run it.
Consider the psudo-code:
JavaScriptInterpreter *interp = new JavaScriptInterpreter();
interp->SetScript(myScript);
interp->SetVariable("inputValue", "42");
interp->Run();
return...
OK, I've got a VC++ application, and I need to do some data conversions.
Now, I'm thinking I want to have a script file, call it x.js. When the data conversion is going to happen, I want my VC++ app to read in x.js, set a variable called inputValue to the original data
x.js will modify...
OK, my suggestion does not use perl, but this should work fine:
find /your/directory -ctime +7 -exec mv {} /your/new/dir \;
This will do it, no loops, no BS.
If you need to do it with perl, use backticks.
You might be seeing the fact that each apache instance creates it's own script, with the daemon/cgi thing. For testing, try making only 1 instance of apache run (in httpd.conf) and see if it helps.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.