Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #8901 > unrolled thread
| Started by | Rainer Borchmann <rainer@borchmann.de> |
|---|---|
| First post | 2016-01-22 01:07 -0800 |
| Last post | 2016-01-28 10:54 +0000 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Interprocess communikation without DDE Rainer Borchmann <rainer@borchmann.de> - 2016-01-22 01:07 -0800
Re: Interprocess communikation without DDE Franz Rachbauer <office@rachbauer.org> - 2016-01-22 10:28 +0100
Re: Interprocess communikation without DDE "Uwe Heyer" <uwe.heyer@aristik.de> - 2016-01-22 14:29 +0000
Re: Interprocess communikation without DDE Martin <Martin@spam.spam> - 2016-01-28 10:54 +0000
| From | Rainer Borchmann <rainer@borchmann.de> |
|---|---|
| Date | 2016-01-22 01:07 -0800 |
| Subject | Interprocess communikation without DDE |
| Message-ID | <ece5ee97-c004-4992-b0ab-0a87c9858cb0@googlegroups.com> |
Hello VOers, i need e Example for Communication between 2 process on the same machine. (i.e between 2 VO Apps) How can i do that, without DDE. Any suggestion is welcome. Thank You Rainer Borchmann
[toc] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2016-01-22 10:28 +0100 |
| Message-ID | <n7ssn7$qpo$1@gioia.aioe.org> |
| In reply to | #8901 |
Hi Rainer, found old source to exchange textstrings between 2 VO apps, don't know from where, maybe it helps. Regards, Franz METHOD pshMsg() CLASS MainDialog LOCAL sCD AS _winCOPYDATASTRUCT LOCAL pCopyData AS BYTE PTR LOCAL dwLen AS DWORD LOCAL cString AS STRING LOCAL hWin AS PTR cString := "Hallo" dwLen := SLen(cString) sCD := MemAlloc(_SizeOf(_winCOPYDATASTRUCT)) pCopyData := MemAlloc(dwLen) sCD.dwData := 0 sCD.cbData := dwLen sCD.lpData := DWORD(_CAST, pCopyData) MemCopyString(pCopyData, cString, dwLen) hWin := FindWindow(NULL_PSZ, PSZ(_CAST, "BASIC DIALOG APPLICATION")) IF hWin <> NULL_PTR ? "gesendet ..." SendMessage(hWin, WM_COPYDATA, 0, LONG(_CAST, sCD)) ENDIF MemFree(pCopyData) MemFree(sCD) METHOD Dispatch(oEvent) CLASS MainDialog LOCAL oEvt := oEvent AS Event LOCAL uMsg := oEvt:umsg AS DWORD LOCAL lParam := oEvt:lParam AS LONG LOCAL cd AS _winCOPYDATASTRUCT IF uMsg = WM_COPYDATA cd := PTR(_CAST, lParam) ? Mem2String(PTR(_CAST, cd.lpData), cd.cbData) ENDIF RETURN SUPER:Dispatch(oEvt) Am 22.01.2016 um 10:07 schrieb Rainer Borchmann: > Hello VOers, > > i need e Example for Communication between 2 process on the same machine. > (i.e between 2 VO Apps) How can i do that, without DDE. > Any suggestion is welcome. > > Thank You > > Rainer Borchmann >
[toc] | [prev] | [next] | [standalone]
| From | "Uwe Heyer" <uwe.heyer@aristik.de> |
|---|---|
| Date | 2016-01-22 14:29 +0000 |
| Message-ID | <dgesn6F1khsU1@mid.individual.net> |
| In reply to | #8901 |
Rainer Borchmann wrote: > Hello VOers, > > i need e Example for Communication between 2 process on the same > machine. (i.e between 2 VO Apps) How can i do that, without DDE. > Any suggestion is welcome. > > Thank You > > Rainer Borchmann Hi Rainer, you should read this first https://msdn.microsoft.com/en-us/library/windows/desktop/aa365574(v=vs.8 5).aspx try and decide Ahoj -Uwe --
[toc] | [prev] | [next] | [standalone]
| From | Martin <Martin@spam.spam> |
|---|---|
| Date | 2016-01-28 10:54 +0000 |
| Message-ID | <n8crqr$smr$1@dont-email.me> |
| In reply to | #8901 |
I have a quick and dirty method for sending a number between applications, I use it to wake up a routine to do some work then it informs the other application to handle its results. Data is sent via a DBF, I could not get multithreading to work Application names are in a header file METHOD TalkToOtherExe (nNo) LOCAL ptr1 as ptr // Make sure window is open ptr1 := FindWindow(null_psz,PSZ(Program1Name)) IF ptr1 == Null_Ptr ELSE PostMessage(ptr1,WM_APP+nNo,0,0) ENDIF RETURN NIL In the .exe with Self:Caption := Program1Name METHOD Dispatch (oEvent) CLASS screenclassname LOCAL uResult AS USUAL uResult := SUPER:Dispatch(oEvent) DO CASE CASE oEvent:Message == WM_APP+100 // Received message 100 from the other program ENDCASE RETURN uResult On 22/01/2016 09:07, Rainer Borchmann wrote: > Hello VOers, > > i need e Example for Communication between 2 process on the same machine. > (i.e between 2 VO Apps) How can i do that, without DDE. > Any suggestion is welcome. > > Thank You > > Rainer Borchmann >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web