AnsweredAssumed Answered

vrf creating seperate threads

Question asked by VRFuser on Apr 8, 2002
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META content="text/html; charset=iso-8859-1" http-equiv=Content-Type><META content="MSHTML 5.00.2614.3500" name=GENERATOR><STYLE></STYLE></HEAD><BODY bgColor=#ffffff><DIV><FONT face=Arial size=2>Hello All</FONT></DIV><DIV> </DIV><DIV><FONT face=Arial size=2>This is a long shot, but someone may know.</FONT></DIV><DIV> </DIV><DIV><FONT face=Arial size=2>We are using an ActiveX OCX control that we made in Visual Basic to control some hardware.  Within the control we have a process running in the background to produce cadenced tones.  We have used a timer control and it's timer event to run this.  The timer event interrupts the vee program flow but this is ok because it doesn't run for long.</FONT></DIV><DIV> </DIV><DIV><FONT face=Arial size=2>We are unable to get reliable timings and we want to have a process running in the background using the API "Sleep" function for timing.</FONT></DIV><DIV> </DIV><DIV><FONT face=Arial size=2>The process must be continually running, without interrupting VEE's execution.</FONT></DIV><DIV> </DIV><DIV><FONT face=Arial size=2><STRONG>Question:</STRONG></FONT></DIV><DIV> </DIV><DIV><FONT face=Arial size=2>Does anyone know, or have an example of, how to create a separate execution thread in VEE/VB?</FONT></DIV><DIV> </DIV><DIV><FONT face=Arial size=2></FONT> </DIV><DIV><FONT face=Arial size=2>We are using VEE 6.01/3 & VB 6</FONT></DIV><DIV> </DIV><DIV> </DIV><DIV><FONT face=Arial size=2>Many thanks</FONT></DIV><DIV> </DIV><DIV><FONT face=Arial size=2>Andrew</FONT></DIV><DIV> </DIV><DIV><FONT face=Arial size=2>Genesys IBS</FONT></DIV><DIV> </DIV><DIV><FONT face=Arial size=2><BR>---<BR>Outgoing mail is certified Virus Free.<BR>Checked by AVG anti-virus system (<A href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.342 / Virus Database: 189 - Release Date: 14/03/02</FONT></DIV></BODY></HTML>  

Outcomes