Re: [DUG] Sending notification between programs

2010-08-17 Thread John Bird
The property FILE_NOTIFY_CHANGE_LAST_WRITE looks like a possibility, as if structured data has just been written to a file this event should be triggered. The only gotcha seems to be that the better the caching is the less likely the event will fire - according to the help. Tricky. John >

Re: [DUG] Sending notification between programs

2010-08-17 Thread Jeremy Coulter
Another way, and one use for easily transmitting structure between apps. i.e. no mucking around with ports etc. Is based around the "PostBox" (or is it mailbox forget now) method. I use Zylappcommunicator. Here is what the document says HTH, Jeremy ZylAppCommunicator 1.0 ZylAppCommunicator is

Re: [DUG] Sending notification between programs

2010-08-17 Thread Dennis Chuah
John, Hi. What you want to use is WinAPI: FindFirstChangeNotification, FindNextChangeNotification and FindCloseChangeNotification in program B. Essentially, A writes to a file, and renames it. This causes the handle returned by FindFirstChangeNotification to be signaled. You can test for t

Re: [DUG] Sending notification between programs

2010-08-17 Thread Jolyon Smith
My preferred answer, based on what you have told us, is in the question: Use an "Event". http://msdn.microsoft.com/en-us/library/ms682396(VS.85).aspx One application creates the event, the other obtains a handle to the same named event (whichever one starts first Creates it, the other O

[DUG] Sending notification between programs

2010-08-17 Thread John Bird
Which way would you favour to do the following ? I have two Delphi programs (A and B) that I will pass data from A to B - I will probably use a file to put the data in because its quite structured. B will sleep on a timer loop until this something is triggered. What I want to do is send a si

Re: [DUG] MSSQL ID field binary(8)

2010-08-17 Thread Stephen Barker
words[0]+' '+words[22]+' '+words[26]+' '+words[32]+' '+words[28]+' '+words[-1] Steve _ From: John Bird [mailto:johnkb...@paradise.net.nz] Sent: Tuesday, 17 August 2010 3:55 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] MSSQL ID field binary(8) I think I have