Re: time delay




"Tim Ward" <tw2@xxxxxxxxxxxx> wrote in message
news:3g8j7bFb02muU1@xxxxxxxxxxxxxxxxx
> "GT" <contactGT_remove_@xxxxxxxxxxx> wrote in message
> news:AwEne.54559$Li.39436@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>
>> How can I put a 1 second pause in my program?
>
> Why? (Different solutions will be appropriate depending on what you're
> trying to achieve.)

I am opening another application remotely through OLE and the other
application requires user input in order to acquire a license. My
application needs to wait until other application is ready before doing any
more interactions. I have written a method in the 'other' application's OLE
interface called "bool waitUntilInitialised()" and in there I can test
quickly and easily for license validity. I would like to do this test every
second and only return a value to the 'calling' application when the license
has been manually validated by the user.

I do not know how to program using multiple threads, so if that might
simplify the problem perhaps you could advise me where to look (or even
better, just tell me what to type!!).

Thanks


.