|
-
Jan 26th, 2020, 12:52 AM
#11
Thread Starter
Hyperactive Member
Re: using VbTrickThreading-master examples without the typelibs for Callback and Mar
 Originally Posted by xiaoyao
you do like on thread:Controls.Add("TestOCX.ctlTest", "Ctl1").Visible = True
when i add usercontrol on form by my hand,not use"controls.add"。
createthread for load the form with usercontrol or ocx,it,s error。
my english is not good,i can't understand your mean。maybe i need down your code for test.
,someone tell me,can use method(EbLoadRunTime
EbCreateContext
EbSetContextWorkerThread)
Dear xiaoyao,
Here is the Link http://www.devx.com/vb2themax/CodeDownload/19804
for FreeThreader component for VB6 which uses above bold API in the same order for runtime initialisation in CreateMT and EnableEvents functions in assembly language in the file MULTITHREAD.Asm .
It is described as follows:
VB6 does not natively support free threading, but with this ActiveX library you can finally create multiple threads and make them communicate, write delegate functions (similarly to VB.NET) and use Structured Exception Handling. The full source code (in VB6 and Assembler) and some sample projects are provided.
This is also reply to http://www.vbforums.com/showthread.p...t-UserControl) post #9
Regarding internal working and stability of this code you can take help from Trick since I have less knowledge in ASM and already he helped me a lot regarding multithreading and he can better understand undocumented API like this.
regards,
JSVenu
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|