Re: Events don't work using C# & SetNotifyWindow



On Wed, 17 May 2006 08:44:02 -0700, David Paps wrote:


Is there any way to obtain the events when they appear, and no when the C#
code has bee executed ?

If you need extra info, ask please.


I think this may be about cross thread notifications.

If the event is raised on a thread which is not the one which created it,
then VB (6 or .net) or CS doesn't always get it. The solution in VB was to
raise the thread from the thread which created it. You do this by making
the atl dll which contains the ds code a CWindow. THen you can post a
message to that window when the DS event is raised, handle the windows
message and raise the event in that.

YOu may well be able to do the same thing with C# by using Invoke from the
event handler in the C# code.

Iain

--
Iain Downs (DirectShow MVP)
Commercial Software Therapist
www.idcl.co.uk
.



Relevant Pages

  • Re: bug or feature - obscured modal dialogs?
    ... Bryan Oakley wrote: ... I specifically have a binding that tells the main window to raise when you click in ".". ...
    (comp.lang.tcl)
  • Re: [kde] Kopete and its notifications
    ... but I dont like the sound even I am writing in the window that produce ... It doesn't look like you can raise the taskbar, ... Another option would be to out the system tray applet onto a child panel ...
    (KDE)
  • Re: Help: raising x-window on top of a display through HPUX shell command?
    ... > through any shell commands or shell script? ... To raise the window you need to determine it's window id. ... You might want to follow-up to comp.windows.x and/or an HP-UX specific ...
    (comp.unix.programmer)
  • Re: Help: raising x-window on top of a display through HPUX shell command?
    ... >> through any shell commands or shell script? ... > To raise the window you need to determine it's window id. ... Neil ...
    (comp.unix.programmer)
  • Re: IE help please
    ... "Katie" wrote in message ... > When browsing I sometimes get a smaller window web page open with extra info ... This page won't expand by dragging the corners and the little ... The window is full of info that is much too ...
    (microsoft.public.windows.inetexplorer.ie6.browser)