The MASM Forum

General => The Campus => Topic started by: Mikl__ on April 20, 2022, 09:25:09 AM

Title: DDE
Post by: Mikl__ on April 20, 2022, 09:25:09 AM
Hi all!
Does anyone have working examples of data exchange such as pictures (CF_DIB) or sounds (CF_WAVE) via DDE. All I thought was text messaging (CF_TEXT)
Title: Re: DDE
Post by: jj2007 on April 20, 2022, 09:46:25 AM
I have quite a number of working DDE stuff. (https://www.jj2007.eu/MasmBasicQuickReference.htm#Mb1084) That is mostly text, however. If you want to exchange binary data, why don't you use WM_COPYDATA? It's elegant and fast.
Title: Re: DDE
Post by: Mikl__ on April 20, 2022, 07:42:17 PM
Ciao, jj2007!
Grazie mille per il link!
QuoteIf you want to exchange binary data, why don't you use WM_COPYDATA? It's elegant and fast
I am writing a short article about Interproccess Communication with few examples. The examples have already been written: There are from the server-application to the client-application sent a customizable text string, simple images and a sound from wav-file are transmitted from in the examples.
Title: Re: DDE
Post by: hutch-- on April 20, 2022, 07:55:32 PM
Mikl__,

When you are through playing games, use memory mapped files and normal Windows messaging for powerful and fast data and messages.

Memory mapped files give the data area transfer, windows messaging using the HWND_BROADCAST handle allows you to sens instructions from one app to another.
Title: Re: DDE
Post by: Mikl__ on April 20, 2022, 08:03:29 PM
Thanks for the tip, Steve! This will be just a tiny article about the different ways of Interprocess Communication (IPC), it's not commercial work, it's just a curiosity work.
(http://www.yourvamentor.com/blog/wp-content/uploads/2015/08/unnamed-1.jpg)
Title: Re: DDE
Post by: jj2007 on April 20, 2022, 10:15:39 PM
For WM_COPYDATA, see "Broadcast Usage" here (http://www.flounder.com/wm_copydata.htm). Or try this:
  invoke SendMessage, HWND_BROADCAST, WM_CLOSE, 0, 0

Title: Re: DDE
Post by: Mikl__ on April 20, 2022, 11:16:18 PM
Thank you very much  for the links again!
Title: Re: DDE
Post by: LiaoMi on April 22, 2022, 03:30:32 AM
Hi Mikl,

where can I see the article later?
Title: Re: DDE
Post by: Mikl__ on April 22, 2022, 07:24:30 AM
Hi LiaoMi!
Lot thanks for the provided examples!
Quotewhere can I see the article later?
I'm collecting examples now. I think it will post here and wasm.in forum
Title: Re: DDE
Post by: Mikl__ on April 24, 2022, 11:17:30 PM
What is done is done. Do not judge strictly.
Inter Process Communication (https://wasm-in.translate.goog/threads/mezhprocessnoe-vzaimodejstvie.34521/?_x_tr_sl=ru&_x_tr_tl=en&_x_tr_hl=ru&_x_tr_pto=wapp#post-433529)
Link to the article in Russian
https://wasm.in/threads/mezhprocessnoe-vzaimodejstvie.34521/#post-433529
Title: Re: DDE
Post by: Greenhorn on April 24, 2022, 11:25:43 PM
Cool !  :thumbsup:

But something is wrong with the link in your post, it does not open on click. (http://"https://...)
Now it works. My script blocker was the problem ...


Kind Regards
Greenhorn
Title: Re: DDE
Post by: Biterider on April 25, 2022, 12:00:21 AM
Excellent work Mikl__  :thumbsup:

Biterider
Title: Re: DDE
Post by: deeR44 on April 25, 2022, 12:02:59 PM
QuoteLink to the article in Russian
https://wasm.in/threads/mezhprocessnoe-vzaimodejstvie.34521/#post-433529

I'll bet that there are thousands of MASM32 SDK users who will swarm all over this.
Title: Re: DDE
Post by: Mikl__ on April 27, 2022, 08:49:58 AM
Is there anyone who can help to continue the topic of Interprocess Communications? I need help writing program snippets about using COM (Component Object Model), Windows Socets, Remote Procedure Call (RPC) for IPC
(https://wasm.in/styles/smiles_s/scratch_one-s_head.gif)