-
Feb 9th, 2025, 06:33 AM
#1
Thread Starter
PowerPoster
how to run VbTrickThreading on vb6 ide,Create New Form1 or Class1 ?
VbTrickThreading
i test some code,but also can't run in vb6 ide,how to fixed?
i want to create new form1,new form2 by createthread
https://github.com/thetrik/VbTrickThreading
-
Feb 9th, 2025, 07:55 AM
#2
Re: how to run VbTrickThreading on vb6 ide,Create New Form1 or Class1 ?
If I’m correct then multi threading only works when compiled, never from within the IDE
-
Feb 9th, 2025, 07:57 AM
#3
Thread Starter
PowerPoster
Re: how to run VbTrickThreading on vb6 ide,Create New Form1 or Class1 ?
 Originally Posted by Arnoutdv
If I’m correct then multi threading only works when compiled, never from within the IDE
that's right.
but can run code in vb6 ide with cteatethread
only can't use new object
dim f as object
set f=new form1 'error
set f=forms.add("form1") 'error
set f=new class1 'err
-
Feb 9th, 2025, 08:08 AM
#4
Thread Starter
PowerPoster
Re: how to run VbTrickThreading on vb6 ide,Create New Form1 or Class1 ?
When i create a class in com dll(activex project)
Function NewForm1() As Form1
Set NewForm = New Form1
End Function
Compilation failed?
Private object module cannot be used as a parameter? The return type of the public process,
Public data members or public user-defined type fields are used in public objects
-
Feb 9th, 2025, 03:56 PM
#5
Re: how to run VbTrickThreading on vb6 ide,Create New Form1 or Class1 ?
You can't use threading in IDE because there is a single instance of the global VM data. Whatever you do it'll be unstable.
-
Feb 9th, 2025, 05:49 PM
#6
Thread Starter
PowerPoster
Re: how to run VbTrickThreading on vb6 ide,Create New Form1 or Class1 ?
 Originally Posted by The trick
You can't use threading in IDE because there is a single instance of the global VM data. Whatever you do it'll be unstable.
You might be able to run multithreading inside a com DLL. Then call back and execute the function in idE.
-
Feb 9th, 2025, 06:47 PM
#7
Re: how to run VbTrickThreading on vb6 ide,Create New Form1 or Class1 ?
Why the urge to run it from the IDE?
But make it if you think it’s possible
-
Feb 9th, 2025, 08:10 PM
#8
Thread Starter
PowerPoster
Re: how to run VbTrickThreading on vb6 ide,Create New Form1 or Class1 ?
 Originally Posted by Arnoutdv
Why the urge to run it from the IDE?
But make it if you think it’s possible
Maybe you can just compile it into an exe and run it. F5 = compile to exe + run + debugYou can even modify the code.Look at the value of each variable.
Exe + create thread + VBA SDK, maybe that's what it means.
-
Feb 10th, 2025, 04:26 AM
#9
Hyperactive Member
Re: how to run VbTrickThreading on vb6 ide,Create New Form1 or Class1 ?
Function NewForm1() As Form not Form1 I think.
But this has nothing to do with threading
-
Feb 10th, 2025, 04:32 AM
#10
Re: how to run VbTrickThreading on vb6 ide,Create New Form1 or Class1 ?
 Originally Posted by xiaoyao
You might be able to run multithreading inside a com DLL. Then call back and execute the function in idE.
You should marshal the call to the main STA. You should follow the COM rules.
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
|