|
-
Apr 24th, 2019, 05:02 PM
#1
Thread Starter
Lively Member
Call VB6 module function dynamically
I think this is a long shot... But if I have a module named e.g. "mHello":
vb Code:
Function a() as Variant
a=1
End Function
Function b() as Variant
b=2
End Function
Function c() as Variant
c=3
End Function
Can I get a handle to mHello such that GetProcAddress(addr,"b") gets the function handle of function b?
Alternatively, is there a way to call function b, and obtain the results, fully dynamically without going through Application.Run?
Edit:
The only thing I can find which may relate is this:
http://bbs.vbstreets.ru/viewtopic.php?f=28&t=42929
However it seems vba6.dll is not supplied with office VB IDE, and thus this particular trick can not be used...
Last edited by sancarn; Apr 24th, 2019 at 05:44 PM.
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
|