Results 1 to 2 of 2

Thread: Help with API declaration of CallByName?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Norway
    Posts
    112
    Can anyone help me complete with this API declaration?

    Code:
    Declare Function rtcCallByName Lib "Msvbvm60.dll"
    (AClass As Variant, 
     Procedure As String, 
     Something As Long) As Long
    As you see I am trying to use an API call to VB6's CallByName to use it with VB5 and/or VBA. The declaration function as it is, crashes when I call it. I am not quite sure of the declaration types of CallByName. Anyone with VB6 can see the types when they fill in the parameters, but I don't have VB6. Can anyone help me solve this?

  2. #2
    Guest
    Hope this helps

    Function CallByName(Object As Object, ProcName As String, CallType As VbCallType, Args() As Variant)
    Member of VBA.Interaction
    Support IDispatch::Invoke


    Enum VbCallType
    Contains:
    Const VbGet = 2
    Const VbLet = 4
    Const VbMethod = 1
    Const VbSet = 8

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