Postmessage and data transfer (OpenInsight 32-Bit)
At 07 OCT 2004 11:32:37AM Richard Channer wrote:
(Also posted in general user area)
Hi All,
We currently have an app which passes data to other apps via a dos file, using postmessage to inform the app that the file is waiting, and vice-versa.
However, sensitive data cannot be passed this way, as the file is obviously readable by anyone, and we need to comply with HL7 CCOW security regulations.
I have tried to send this data (fairly small chunks of only a few Kb) within the parameters of postmessage, but it seems to only accept strings of 16 bytes or less.
Is there another way I can invisibly transfer data between two apps using OI?
TIA,
Rich
At 07 OCT 2004 03:16PM Richard Bright wrote:
How about DDE (yuck!). With the new WinXP SP2 this is now getting a tad messier - may need to have certificates for other application.
At 11 OCT 2004 11:17AM Bob Carten wrote:
Richard
I don't know which other apps, so I'll give a generic answer. You can opt for push or pull approaches. I a push approach, OI sends the data to the other application – that is what you are doing now.
DDE is an older way to do this. OLE automation is a newer technology for the same thing. If your other applications support it, you can create a window (with OI 7.1 you wil not need the window) to host an OLE object, then send data with that. If our OLE implementation is not robust enough, you can use the windows scripting host as the OLE objectm, then feed it complex scripts to drive the data to the client.
"Pull" approaches are possible too. Xrev.dll, or even RevCapi32 can be used from a Visual Basic application, including excel or word, to
start an instance of OpenInsight, run a program, the feed data back to the caller. You can also use OECGI to do this.
HTH
Bob