Results 1 to 2 of 2

Thread: Loop in ActiveX control

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    1

    Loop in ActiveX control

    Hello all

    I have written an ActiveX control to read and write to the serial port using API calls waitcommevent ... & readfile ...
    The problem I am having is I am using waitcommevent to raise an event and launch a sub routeen which then calls readfile in the client form / module the main problem is it pauses the code in the client application. How can I return control back to the client while waiting for a waitcommevent to arive?

  2. #2
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    Re: Loop in ActiveX control

    Write multi-threaded code.

    What language are you using? If you want to do this in VB6 - well, it's possible, but I wouldn't recommend it unless you are a seasoned expert.

    Otherwise move onto .net which has multi-threading natively in the runtime so most languages support it.
    "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein

    It's turtles! And it's all the way down

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width