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...
...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...
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...
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) \...
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...
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()...
...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...
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...
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...
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?
...{
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);
}
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...
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.