Debug a bad DLL calling convention

前端 未结 6 860
轻奢々
轻奢々 2020-12-09 10:20

How do I debug a bad DLL calling convention error in MSAccess VBA code?

I made some changes to a function in a module and then got the error. How do a debug it to fi

6条回答
  •  一整个雨季
    2020-12-09 10:28

    Have you checked your references and decompiled?

    "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" 
                                    "d:\My Documents\access\mayapp.mdb" /decompile
    

    See also:
    http://www.granite.ab.ca/access/decompile.htm
    VBScript Decompile


    Check references in code

    Dim ref As Reference
    Dim sMsg As String
    
    ''Available since 2010
    If BrokenReference Then
        For Each ref In References
            ''Available since at least 2000
            If ref.IsBroken Then
                sMsg = sMsg & "Ref Name: " & ref.Name
                'Also, if required
                'sMsg = sMsg & vbCrLf & "Built In: " & ref.BuiltIn
                'sMsg = sMsg & vbCrLf & "Full Path: " & ref.FullPath
                'sMsg = sMsg & vbCrLf & "GUID: " & ref.Guid
                'sMsg = sMsg & vbCrLf & "Kind: " & ref.Kind
                'sMsg = sMsg & vbCrLf & "Major (version number): " & ref.Major
                'sMsg = sMsg & vbCrLf & "Minor (version number): " & ref.Minor
                sMsg = sMsg & vbCrLf & "=================================" & vbCrLf
            End If
        Next
        MsgBox sMsg
    End If
    

提交回复
热议问题