Results 1 to 36 of 36

Thread: [VB6] - Multithreading in VB6 part 4 - multithreading in Standart EXE.

Threaded View

  1. #30

    Thread Starter
    PowerPoster
    Join Date
    Feb 2015
    Posts
    2,797

    Re: [VB6] - Multithreading in VB6 part 4 - multithreading in Standart EXE.

    TxFlowStateChanged is called from the other thread? Each call is in the different thread or the same one?
    If so, you need to initialize the thread before work with it, you should call ThreadProc from your callback function. You also can't call the methods of the VB6 controls from the different thread without marshaling. You need to pass the queries to the main thread using the messages queue, APC, etc. If you can change the sources of the .Net assembly it's simpler to ensure marshaling from that assembly using a callback interface and the typelib-marshaller.

Tags for this Thread

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