News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

DDE

Started by Mikl__, April 20, 2022, 09:25:09 AM

Previous topic - Next topic

Mikl__

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)

jj2007

I have quite a number of working DDE stuff. That is mostly text, however. If you want to exchange binary data, why don't you use WM_COPYDATA? It's elegant and fast.

Mikl__

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:
  • WM_COPYDATA,
  • clipboard,
  • shared memory,
  • named pipes,
  • mailslots.
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.

hutch--

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.

Mikl__

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.

jj2007

For WM_COPYDATA, see "Broadcast Usage" here. Or try this:
  invoke SendMessage, HWND_BROADCAST, WM_CLOSE, 0, 0


Mikl__

Thank you very much  for the links again!

LiaoMi

Hi Mikl,

where can I see the article later?

Mikl__

#8
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

Mikl__

What is done is done. Do not judge strictly.
Inter Process Communication
Link to the article in Russian
https://wasm.in/threads/mezhprocessnoe-vzaimodejstvie.34521/#post-433529

Greenhorn

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
Kole Feut un Nordenwind gift en krusen Büdel un en lütten Pint.

Biterider

Excellent work Mikl__  :thumbsup:

Biterider

deeR44

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.

Mikl__

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