|
-
May 18th, 2016, 10:56 PM
#1
Thread Starter
New Member
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?
-
May 19th, 2016, 06:42 AM
#2
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.
-
May 19th, 2016, 07:12 AM
#3
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|