Results 1 to 2 of 2

Thread: Create Thread in vb with Api

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    42
    hi.

    i need a very basic sample code...

    to create thread with API in vb.

    thanks and goodbye/

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    I would be easier to wait for vb7. The CreateThread api is not compatible with vb's threading method, and can crash your app under many circumstances.
    Instead use apis like CoMarshalInterThreadInterfaceInStream and CoGetInterfaceAndReleaseStream

    I haven't used them yet, I'm planning to dive deeper into the subject, but as usual I can't find the time to do so.

    For more details:
    http://www.desaware.com/articles/threadingl3.htm

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