Thanks Paul G.
Now I get my application works, and It works pretty good.
I have another question :
When I use SendMessage to C# Windows Application.I use MessageWindow to
Listen the message.
I want to send a string to C# Window Application
So I write :
LPTSTR szContent = _T("want to send to c#");
SendMessage(TO_CSHARP_MESSAGE,(WPARAM)szContent,0);
however, C# side, How can I change the WPARAM parameter to string?
thanks
[quoted text, click to view] "Paul G. Tobey [eMVP]" wrote:
> Look at P/Invoking SendMessage() or PostMessage() to send a message to all
> top-level windows in the system (or you may be able to use FindWindow() to
> locate the right window of your eVC program, to minimize your broadcasting
> of messages). Going in the other direction, you could use, again, a
> broadcast and use something like ApplicationEx and an IMessageFilter
> (defined by OpenNETCF's SDF), to catch the return message from the eVC
> program.
>
> Paul T.
>
> "jeff" <jeff@discussions.microsoft.com> wrote in message
> news:90056591-DD95-475E-8EFF-DBCC51EBC08A@microsoft.com...
> > Oh,Sorry
> >
> > What I want to do is:
> > I have a C# project with Windows Form,
> > and another project create by Evc4.0 CDialog base(I modify it to Cwnd, run
> > background)
> > When C# Windows.Form click a menu,to trick some function within Evc
> > project.
> > After Evc project finish his job, send back message to C# project
> >
> > Thanks
> >
> >
> >
> > "Paul G. Tobey [eMVP]" wrote:
> >
> >> You'll have to be a little more specific about *what* it is that you want
> >> to
> >> exchange with the other application, but, yes, you can do that. Named
> >> events, window messages, sockets would all be possibilities (there are
> >> others, too).
> >>
> >> Paul T.
> >>
> >> "jeff" <jeff@discussions.microsoft.com> wrote in message
> >> news:6FAC1962-6E00-4633-84A2-6471DCBF3842@microsoft.com...
> >> > hi,sir
> >> >
> >> > Can I send/receive message betwenn with other Application Created by
> >> > evc4.0?
> >> >
> >> > thanks
> >>
> >>
> >>
>
>