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 SkipVought 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

    Hi, I'm new to Delphi programming (well re-learning after a 14 year break) and I'm trying to get a Delphi application to communicate with a Dll writen in C++ (I don't have access to the Dll source code). I can call most of the dll's functions fine but I'm struggling to get callbacks to work...
  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

    Hi, I'm having a bit of a problem losing database connections. I have a perl script that forks 2 children. Each child connects to the same database. The first child completes it's processing correctly but the second loses it's database connection. I put some logging into the code and it...
  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

    thanks for your help but unfortunately I didn't manage to solve the problem using your solutions. I think the correct way to do it is by using EXECUTE but currently this isn't returning the value that I'm expecting (it always returns 0). If you have any ideas why this might be so then any help...
  12. Vovin

    passing parameters to plpgsql function problem

    Hi, I'm having a 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...
  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

    Thnaks Trojan, I tried to do this using the following code which is similar to some I found in O'Reilly's 'Programming Perl' pg 427 (3rd Edition). I couldn't get it to work though. Can anyone tell me why this doesn't work? I'll have a go at using the exec command too: sub startFoo { my...
  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