[2.0] Wm_copydata?
Asked on: 20 Nov 2008
I am trying to send data with WM_COPYDATA.
I am trying the following
csharp Code: [DllImport("user32.dll", EntryPoint = "PostMessageA")] private static extern int PostMessage(int hwnd, int wMsg, int wParam, ref COPYDATASTRUCT data); [DllImport("kernel32.dll")] private static extern int GetLastError(); const int WM_COPYDATA = 0x4A; const int SendMsg = 0x1337; //SendMessage Msg param [StructLayout(LayoutKind.Sequential, Pack = 1)] struct COPYDATASTRUCT { ...
www.vbforums.com./showthread.php?t=547758&mode... - At least 6 Posts and 2 Authors
- Only this forum
WM_COPYDATA ... what's inside?
Asked on: 17 Jun 2008
On Tue, 17 Jun 2008 07:40:24 -0700 (PDT), ".rhavin grobert" <clqrq@yahoo.de
After reading something about WM_COPYDATA, i'm still unshure if i
should use it...
The question is: what does it do? M$ doesnt explaint this very well
(as expected ;-), so i see two possible ways how it is done:
#1 SendMessage(WM_COPYDATA, ...) copies the data in an internal buffer
and POSTS the message to the destination 'while' it returns (so it is
some kind of PostMessage anyway).
#2 SendMessage(WM_COPYDATA,...
www.omgili.com/newsgroups/microsoft/public/vc/... - At least 5 Posts and 2 Authors
- Only this forum
Is it possible to raise a classe event from outside the class?
Asked on: 12 Nov 2008
On Wed, 12 Nov 2008 19:31:58 -0000, "Paulo" <nospam.pmp_costa@netcabo.pt
Hi,
I subclassed a form to process WM_COPYDATA messages in a WindowProc in a BAS
module. Those messages are sent from another application and contain
commands that my application should execute. One of these command should
raise an event declared in a class module. Is it possible, from outside that
class module to raise that event?
TIA,
Paulo
www.omgili.com/newsgroups/microsoft/public/vb/... - At least 8 Posts and 4 Authors
- Only this forum
Send messages from Web-browser to MFC-application?
Asked on: 20 Nov 2008
On Thu, 20 Nov 2008 14:58:25 +0100, "Gaute" <Gaute@nospam.nospam
This might be wrong news-group, maybe somebody can help me with that too.
I want my MFC-application to receive messages (DDE, Automation, WM_COPYDATA
or whatever is not too hard to receive) from a hyperlink or button on a
web-page. The MFC application and the Web browser are running on the same
computer. This must work on IE7/IE8 but a universal solution is best.
Is it possible to send messages to my MFC-application fr...
www.omgili.com/newsgroups/microsoft/public/vc/... - At least 6 Posts and 5 Authors
- Only this forum
Can I implement asynchronous IO with shared memory?
Asked on: 21 Jan 2008
On Mon, 21 Jan 2008 03:00:22 -0800, Kun Niu <KunNiu@discussions.microsoft.com> wrote:
Dear all,
I'm trying to implement a IPC program.
The program is based on console.
So it's realy hard for me to send WM_COPYDATA to other console program.
Will shared memory fullfil my requirement?
I really find it difficult to implement asynchronous I/O with shared memory.
Any advice will be appreciated and thanks in advance.
www.omgili.com/newsgroups/microsoft/public/win... - At least 3 Posts and 1 Authors
- Only this forum
Quale tecnologia per scambio messaggi applicativi?
Asked on: 03 Sep 2007
On Mon, 3 Sep 2007 15:41:30 +0200, Morde <morde@mailinator.com> wrote:
Per implementare lo scambio di messaggi tra processi di un'applicativo 32
bit, è sensato usare wm_copydata o è stata introdotta una gestione
differente con Vista?
I miei dubbi sono riguardo la "futuribilità" di questa scelta, siccome non
conosco Vista ne' mi sono documentato a riguardo, non vorrei scegliere una
strada che poi trovo preclusa da qualche anno.
Grazie a tutti in anticipo.
--
MordePer implementare lo...
www.omgili.com/newsgroups/it/comp/lang/delphi/... - At least 7 Posts
- Only this forum
What is the overhead of using windows messages?
Asked on: 25 Jul 2008
On Fri, 25 Jul 2008 09:42:31 -0700, "Nick Schultz" <nick.schultz@flir.com
After getting a running prototype of my packet sniffing app on a production
machine, I have realized that I use the entire cpu under a 40% bus load.
I figured it must be because of all the messages being sent from the CANLIB
driver to my application. It sends a notification message when the receive
queue leaves its empty state. When no clients are connected, my apps then
simply drops the packets. This process...
www.omgili.com/newsgroups/microsoft/public/vc/... - At least 9 Posts and 4 Authors
- Only this forum
|
About Omgili Q&A
Omgili Q&A is a sub-section of Omgili that is dedicated to finding questions and answers.
Most of the questions you want answered have been asked before, and many of them have been answered. Omgili Q&A looks in discussion groups, forums, Q&A sites and extracts the answers for your queries.
It's simple, fast and efficient.
|