Re: using VbTrickThreading-master examples without the typelibs for Callback and Mar
Dear Trick,
The trick;5448235]Please attach the project. I think CoInitializeEx has the bad declaration maybe because CoInitialize initializes STA.
I am attaching the project.
Please clarify why the new thread crashes on clicking Create Thread button when we use both
GetMem4 1&, ByVal pHeader + &H3C in CreateVBHeaderCopy and
CoInitializeEx ByVal 0&, ByVal COINIT_APARTMENTTHREADED in ThreadProc
Eb means - Excel Basic.
You can use it in the restricted scenarios as i think. The solution depends on the task.
Can you give me a small example of their (EbLoadRunTime, EbCreateContext, EbSetContextWorkerThread ) usage like we use vbdllgetclassobject api using declare.
For example we have
Declare Sub EbLoadRunTime Lib "msvbvm60" (ByVal BaseAddress As Long, ByVal BaseInit As Long)
But how to use EbLoadRunTime for runtime loading and EbCreateContext for creating context and setting context of any thread using EbSetContextWorkerThread .
regards,
JSVenu
Last edited by jsvenu; Jan 28th, 2020 at 10:55 PM.