Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: mike Newsgroups: comp.lang.basic.visual.misc Subject: How to tell when an ocx method call is finished? Date: Tue, 24 Jan 2012 09:10:47 -0800 Organization: A noiseless patient Spider Lines: 21 Message-ID: Reply-To: spamme9@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 24 Jan 2012 17:12:12 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="bWdScuGdXUTi0jlClVJCKQ"; logging-data="19696"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+d4Yuf/boIngBpg4p8hNRu" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 Cancel-Lock: sha1:km2D2/ek1rYOWn+pSMc1L2MHw+g= Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:720 I'm trying to make the Softmark USB to GPIB converter work. The vendor is unwilling to supply any documentation of sample programs or ANYTHING other than a crippled demo program. I've fixed the hardware, but the firmware doesn't support my fix. I've been experimenting, trying to reverse engineer the .ocx file that came with it. Doing a GPIB handshake for every byte in visual basic is excruciatingly slow, but I'd like to use this turkey for something. Problem is that there's an ocx method to write the ports. But it can take as much as 300ms for it to happen. And there's no feedback, so I have to poll the registers, which ain't valid for up to 300ms. So, is there a way to tell when the method has finished? I've used wait for single object to call programs using the shell. Is there something similar that I can use on an unknown "black box" call thru an ocx? Thanks, mike