|
-
Dec 29th, 2022, 08:45 PM
#35
Re: VB6 Threaded Forms (simple Demo)
 Originally Posted by VanGoghGaming
I'm a little bummed out that you have to use "CreateObject" versus the "New" keyword when creating new threads.
This kind of thing plays into the realm of "regfree Object-instantiation"...
The CreateObject-call is a "VB-simplified outer wrapper" around the CoCreateInstance-API
(which itself is a wrapper around registry-lookups, typelib-interaction and COM-Threading-inits before the real instancing takes place),
whereas the New Keyword is more "near to the metal" in, that it bypasses all the registry-, typelib- and thread-init parts
(to jump "more straight" into the final phases of Instance-creation via a precompiled ClassFactory...)
That's the reason why CreateObject has to be used instead of New in this case of "InProcess Ax-Exe-Threading".
In the tutorial you're about to read, "all the stuff which CreateObject does under the covers" (in case of Ax-Exe-based STAs), will be done "manually" when you come to the parts which cover the "Dll-based STA-creation from within Std-Exes".
Olaf
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
|