in reply to Re: Re: Win32::Gui + Threading?
in thread Win32::Gui + Threading?

Hmm, it looks promising... but I really can't tie up the users internet connection like that (constant polling)...


-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d- s:++ a--- C++++ UL P+++>++++ L+ E- W++>+++ N !o K- W+ O---- M-- V--
PS PE Y- PGP t++(+++) 5(+++)++++ X R+@ tv+ b+++ DI+ D- G e->+++ h! r-- y-
------END GEEK CODE BLOCK------
Translate

"Weird things happen, get used to it."

Flame ~ Lead Programmer: GMS

Replies are listed 'Best First'.
Re: Re: Re: Re: Win32::Gui + Threading?
by deadkarma (Monk) on Nov 12, 2001 at 23:52 UTC
    Although I'm not sure what you're trying to do, you don't have to constantly poll. Maybe something like this pseudo-code:
    On button click->add timer to do subroutine A. sub A() { if(socket != EOF) { open socket, read line. } else { kill timer. } }
    Hope this helps.