AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Windows API design

Ein Thema von frankly · begonnen am 5. Mai 2003 · letzter Beitrag vom 7. Mai 2003
 
roderich
(Gast)

n/a Beiträge
 
#2
  Alt 5. Mai 2003, 14:53
hi Frankly,

You have various ways for communication between processes, for example OLE, COM, messaging .... or just creating DLL's instead of EXE files.

I would propose a simple messaging via SendMessage from/to the C program. In this case You have to modify the source of the C programs to tell them the handle of the associated Delphi program's form (e.g. via runtime parameter). Another way is to call FindWindow from the C program to get the correct form handle.

Then send a message to the other form by calling
SendMessage(WM_CopyData, handle, hwnd, pcds)
where
handle is address handle
hwnd is handle of sending window
pcds points to a structure to transfer

regards
Roderich
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:30 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz