Results 1 to 3 of 3

Thread: dll's and delivering an event or message

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2016
    Posts
    14

    dll's and delivering an event or message

    I'm running VB6
    I want to send a thread from my VB *.dll to my application safely

    I can make a public sub to receive a pointer but how do you handle pointers in VB?
    Is their another way?

  2. #2
    Fanatic Member
    Join Date
    Jan 2013
    Posts
    813

    Re: dll's and delivering an event or message

    Calls from VB programs to VB Dlls are synchronous. You cannot call back into the program from the Dll because the program is waiting for the Dll call to return.

    To achieve an asynchronous call, you need to use an ActiveX Exe; a separate program that runs on its own but can receive calls from a VB program and, with a little bit of work, can do so without making the calling program wait and can even make calls back into the VB program (at a push). However, you would not need pointers for any of this; even though ActiveX Exes are teetering on the edge of what VB was built to do, you're still firmly in the VB world where Strings and such like still hold sway.

    Pointers are definitely outside of the "standard" VB box; very little of the standard Error Handling will help you if anything goes wrong (and it will), making debugging very difficult (and very tiresome).

    Regards, Phill W.

  3. #3
    Lively Member
    Join Date
    Mar 2014
    Posts
    101

    Re: dll's and delivering an event or message

    You are one smart cookie Phil, wish i had your brains

Tags for this Thread

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