Results 1 to 11 of 11

Thread: Call VB6 module function dynamically

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2019
    Posts
    67

    Call VB6 module function dynamically

    I think this is a long shot... But if I have a module named e.g. "mHello":

    vb Code:
    1. Function a() as Variant
    2.    a=1
    3. End Function
    4. Function b() as Variant
    5.    b=2
    6. End Function
    7. Function c() as Variant
    8.    c=3
    9. 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
  •  



Click Here to Expand Forum to Full Width