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 Wanet Telecoms Ltd 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: *

  • Users: Vovin
  • Order by date
  1. Vovin

    Regional settings

    Thanks. I managed to work it out. The code in my original post seems to do the job.
  2. Vovin

    Regional settings

    Hi, I want to change the regional settings for my application. I don't want to permanently change these settings on the host PC (i.e. using SetLocaleInfo). I just want to change regional settings for my application irrespective of the regional settings on the users PC. This is what I currently...
  3. Vovin

    Trying to connect to callback function in C++ dll

    It's ok I've eventually worked it out for myself. There's not a lot of activity on this forum.
  4. Vovin

    Trying to connect to callback function in C++ dll

    ...dll's functions fine but I'm struggling to get callbacks to work. The C++ Dll provides the following code for callbacks: typedef void(__stdcall *eventCallback)(void); // stdcall used for WINAPI compatibility. DLLAPI void DLLCALL SetConnectedCallback(eventCallback); DLLAPI...
  5. Vovin

    AfxGetApp problem

    Hi, an MFC question. Within my CMainFrame class I want to access my App class methods. I've tried the following code: CPOSAnywhereClientNTApp *app = dynamic_cast<CPOSAnywhereClientNTApp*>(::AfxGetApp()); IPAddress commandLineIPAddress = app->getTargetIPAddress(); if...
  6. Vovin

    Can I embed ##ifdef in a macro?

    Thanks that works fine.
  7. Vovin

    Can I embed ##ifdef in a macro?

    Hi, I have a macro of the form: #define MACRONAME (expr) OTHER_MACRO_TO_CALL (expr) however I only want the macro OTHER_MACRO_TO_CALL to be called if a certain token is already defined. For example something like this: #define MACRONAME (expr) \ #ifdef MY_TOKEN \ OTHER_MACRO_TO_CALL (expr) \...
  8. Vovin

    Forking and Database Connection problem

    Hi Travs69, thanks for the suggestions. I'm not a DBA but the DB does allow multiple connections. At the moment I'm looking at my forked children calling "system" and executing an external program to do any database connections that I need. It's a horrible messy solution though and it still...
  9. Vovin

    Forking and Database Connection problem

    ...$config hash reference sub connectDB { my $invocant = shift; print STDOUT "mp_db::connectDB called\n"; my $pagdb_tns = "********"; my $pagdb_connect = "dbi:Oracle:host=*******;sid=*******;port=****"; my $pagdb_user = "*********"; my...
  10. Vovin

    passing parameters to plpgsql function problem

    The above function does actually solve the problem of passing a comma-delimited list of values to a plpgsql function. If I remove everything that refers to a date then this seems to work ok. For some reason when I pass a date into the sored proc it doesn't treat it correctly. If I use the now()...
  11. Vovin

    passing parameters to plpgsql function problem

    ...and job_history.event_occured <= ' || weekEndParam || ' + 1 and job_history.event_occured >= ' || weekEndParam || ' - (' || numOfWeeks || ' * 7) + 1 and job_history.job_id IN (select distinct job_history.job_id from job_history where...
  12. Vovin

    passing parameters to plpgsql function problem

    ...passing a comma-delimited list of values to a plpgsql function (stored procedure) that I've created. I'm calling the function as follows: select * from get_total_jobs_passed_at_eol(268, date('2006-03-19'), 2, '1,2', '1'); The 4th parameter is the one that I'm having trouble with (i.e...
  13. Vovin

    C style header files in perl

    Thanks Paul. I knew it would have to be something simplelike that. I'll give CPAN a look.
  14. Vovin

    C style header files in perl

    Hi, I have a list of constants that I want to re-use in several *.pl and *.pm files e.g. # boolean values use constant TRUE => 1; use constant FALSE => 0; I want to put this stuff in an external file and not copy/paste it into every file that uses it. Sort of like a C++ header file. Can...
  15. Vovin

    How do I recursively remove files from directories?

    Thanks ArkM, I managed to cobble something together that did the job.
  16. Vovin

    How do I recursively remove files from directories?

    Hi, does anyone have a small elegant piece of code (in C) that recursively remove files from directories. Thanks.
  17. Vovin

    Easy Debug Question

    Oooops I seem to have set the cat among the pigeons a bit here :) I was quite suprised that this thread has started again after about a year and a half. I have to say that since I first posted this thread I have moved company and am now no longer using Delphi. I've worked for 5 software...
  18. Vovin

    Starting and killing a process

    Yeah I think your right - closing the pipeline doesn't seem to close the pipeline. Does anyone have any code to do this. I'm not really getting anywhere fast with this?How would I get the ID for this process so that I can kill it?
  19. Vovin

    Starting and killing a process

    ...{ my $currentWorkingDirectory = getcwd(); chdir("/foo"); open BAR, "foo -l -v|" || die "can't fork: $!"; while (<BAR>) { if (/.*/) { last; } } close PRINT_MAN or die "Unable to close $! $?"; chdir($currentWorkingDirectory); }
  20. Vovin

    Starting and killing a process

    Hi, can anyone help me with this? I'm trying to start a small C program (foo.exe) from my perl program. Once started the C program runs forever monitoring a directory for incoming files. I want to start this process but stop it when it outputs the following line to the screen: 'Waiting for...

Part and Inventory Search

Back
Top