Results 1 to 40 of 172

Thread: using VbTrickThreading-master examples without the typelibs for Callback and Marshal

Threaded View

  1. #11

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2015
    Posts
    356

    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
    Attached Files Attached Files
    Last edited by jsvenu; Jan 28th, 2020 at 10:55 PM.

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