Re: check if programme exist with HWND

Tech-Archive recommends: Fix windows errors by optimizing your registry



Ok, now I ask myself what happens in Windows with the "lost" message.
Do you think, Windows or my application can crash if I send a message to a
HWND that no longer is valid?
Should I use try-catch with SendMessage?

Regards, Guido



if(IsWindow(hWnd)) // is a window
{
// crashes
SendMessage(WM_COPYDATA,...); // lost
}

so there is no guaranteed way to do this reliably.
joe


.



Relevant Pages

  • Re: IE /Outlook Express problem
    ... message windows. ... Unfortunately there are too many programs called "Dr Watson". ... in NTx drwtsn32.exe will intercept the crash and append to its log. ... > Spybot, Registry medic, Easy Clean, Cleaned all files and defragged HD. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Drawing on DC
    ... can you finally say me about a good guide to Windows ... for drawing in OnMouseMove is that the mouse is captured and the window ... The strokes are going into the container where it counts. ...
    (microsoft.public.vc.mfc)
  • Re: Looking for solution to crash and unwanted shutdowns.
    ... Start by looking in Event Viewer for any err events, ... On the next crash you should then get a BSOD featuring the error msg ... I wonder if it has damaged something in Windows XP. ... I lost months of data in the first crash and since than have lost many ...
    (microsoft.public.windowsxp.general)
  • Re: Welcome to windows/Switch user locked
    ... "Joe" wrote in message ... First I am working with windows XP. ... I'll call them Act 1 and Act 2. ... allowed me to access the two accounts. ...
    (microsoft.public.windowsxp.accessibility)
  • RE: Windows Explorer
    ... Hi, Joe. ... When running on the parallel OS, the 'big' folder (which ... original Windows installation, I found that that also now ... >temporarily uninstall the PaintShop Pro software to check ...
    (microsoft.public.windowsxp.perform_maintain)