comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to display live Video in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to display live Video in IDL [message #45842] Tue, 11 October 2005 14:39 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Mark Hadfield wrote:
> Rick Towler wrote:
>
>> About the best you can use the win API's GetActiveWindow() function to
>> get a handle to the active window. If you create the window in IDL
>> then immediately call a function to get the handle then you should be
>> fine 99.9% of the time :)
>
>
> Those sound like good odds to me! But I'm curious: what is likely to
> happen in the other 0.1%?

Well, say you run this IDL program and then click on your email client
to check for the latest gossip on comp.lang.idl-pvwave at just the right
moment after IDL has created the window but before the program has
called the DLM to make the GetActiveWindow() call. Now you'll get a
handle to your email client window, not your new IDL window, and is this
case it would most likely bring IDL down.

I use this in my directInput dlm and to be honest, I haven't had a
problem. But I'm pretty sure that at least theoretically this is an issue.

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Tab Widgets changes at runtime?
Next Topic: Re: Asynchronous reading

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 12:27:12 PDT 2025

Total time taken to generate the page: 2.15290 seconds