Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mbaranski

    Get table list from ODBC Connection in .NET

    One more bump here, someone has to know how to do this?
  2. mbaranski

    Get table list from ODBC Connection in .NET

    Bump... Does anyone know how to do this?
  3. mbaranski

    Telling a function which global variable to use without passing it

    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...
  4. mbaranski

    Get table list from ODBC Connection in .NET

    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!
  5. mbaranski

    Namespace problems

    Never mind, it had to do with each class including the others .h file and this was screwing up the compiler. Makes no sense, but it's fixed now.
  6. mbaranski

    How to embed interpreter

    I guess I should have mentioned that this is all managed C++, and it does not look like the IActiveScript stuff is managed...
  7. mbaranski

    Converting a char to an integer?

    Well, you can also use int four = Integer.parseInt('4');
  8. mbaranski

    pane window that user can paste excel columns into

    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>
  9. mbaranski

    Can't unlink files

    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.
  10. mbaranski

    How to Handle Telnet session fail errs/excute the next block of code?

    eval() comes to mind. perldoc -f eval
  11. mbaranski

    Bad Programming Habits

    ...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.
  12. mbaranski

    Namespace problems

    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...
  13. mbaranski

    How to embed interpreter

    ...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...
  14. mbaranski

    Constant values are visible in the executable file

    You could put them in the file as hex, too, that'd be quick.
  15. mbaranski

    How to embed interpreter

    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...
  16. mbaranski

    Move file out of directory after 7 days

    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.
  17. mbaranski

    WMI Query Help

    OK, DUH, the select syntax is wrong. It should be: bstr_t("SELECT * FROM Win32_UserAccount") and it works fine.
  18. mbaranski

    mod_perl DBI question

    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.
  19. mbaranski

    WMI Query Help

    ...#include <iostream> using namespace std; #include <comdef.h> #include <Wbemidl.h> # pragma comment(lib, "wbemuuid.lib") int main(int argc, char **argv) { HRESULT hres; VARIANT v; // Initialize COM. hres = CoInitializeEx(0, COINIT_MULTITHREADED); if (FAILED(hres)) {...
  20. mbaranski

    Help me use modules?

    Do a search for WriteExcel.pm through windows, and add that path to @INC.

Part and Inventory Search

Back
Top