EnumWindows() to get top level windows, very easy in C#.
[DllImport("user32.Dll")]
public static extern int EnumWindows(EnumWindowsProcHandler x, int lParam);
// Declare callback delegate
public delegate bool EnumWindowsProcHandler(int hwnd, int lParam);
// Call
EnumWindows(new EnumWindowsProcHandler(EnumWindowsProc), someInt);
// Handle callbacks
public bool EnumWindowsProc(int hwnd, int lParam)
{
//
}
-----Original Message-----
From: Ryan Jameson (USA) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 3:30 PM
To: dotnet
Subject: RE: DDE.NET ????
Half way there! Ok, I can now recieve DDE messages nicely. One problem I've
run into is I cannot figure out how to get a window handle for an external
application. In C++ I used to have to enumerate the current applications and
then I could search those for my specific window. Anyone have insight into
this using VS.NET and C# ??? Thanks...
<>< Ryan
-----Original Message-----
From: Kats, Sergey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 8:05 AM
To: dotnet
Subject: RE: DDE.NET ????
You might find these articles useful:
http://www.codeproject.com/vb/net/singleinstance.asp
http://www.codeproject.com/useritems/ddelistener.asp
They talk about implementing DDE listeners. To send DDE to another app you
gotta dig into API docs, SendMessage or PostMessage. More info here:
http://msdn.microsoft.com/library/en-us/winui/WinUI/WindowsUserInterface/Dat
aExchange/DynamicDataExchange/UsingDynamicDataExchange.asp
Have fun!
Sergey
-----Original Message-----
From: Ryan Jameson (USA) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 9:36 AM
To: dotnet
Subject: RE: DDE.NET ????
DDE=Dynamic Data Exchange ... it's an old fashioned interoperability
technology Microsoft came up with. I need to talk to another application and
so far the best I can find are some techno-babble articles that start with
"this article requires intermediate knowledge of dde" and is written in C++
(BLAAAA!). I cannot find any documentation that will get me to intermediate.
:-\ ....
<>< Ryan
-----Original Message-----
From: Travis D. Falls [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 7:32 AM
To: dotnet
Subject: Re: DDE.NET ????
what is DDE?
--- "Ryan Jameson (USA)" <[EMAIL PROTECTED]> wrote:
> Does anyone have any experience, insight, or guesses
> about how to implement a DDE client and server in
> VS.NET? Thanks.
>
> <>< Ryan
>
> Ryan Jameson
> Software Development Services Manager
> International Bible Society
> W (719) 867-2692
>
> ---
> You are currently subscribed to dotnet as:
> [EMAIL PROTECTED] To unsubscribe send a blank email to
> %%email.unsub%%
>
> ---------
> Administrated by 15 Seconds :
> http://www.15Seconds.com
> List Archives/Search :
> http://local.15Seconds.com/search
> Subscription Information : http://www.15seconds.com/listserv.htm
> Advertising Information:
> http://www.internet.com/mediakit/
>
>
---
You are currently subscribed to dotnet as: [EMAIL PROTECTED] To
unsubscribe send a blank email to %%email.unsub%%
---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search Subscription
Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/
---
You are currently subscribed to dotnet as: [EMAIL PROTECTED] To
unsubscribe send a blank email to %%email.unsub%%
---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search Subscription
Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/
---
You are currently subscribed to dotnet as: [EMAIL PROTECTED] To
unsubscribe send a blank email to %%email.unsub%%
---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search Subscription
Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/
---
You are currently subscribed to dotnet as: [EMAIL PROTECTED] To
unsubscribe send a blank email to %%email.unsub%%
---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search Subscription
Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/
---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/