Sign in to follow this  
Followers 0
MachinistProgrammer

Autoit + com events

1 post in this topic

i ave writen the following in VB.Net

<ComClass(core.ClassId, core.InterfaceId, core.EventsId)>
Public Class core
    Public Const ClassId As String = "790D4506-D57D-4E2D-935A-1CC02C4B7CB4"
    Public Const InterfaceId As String = "0568FCF5-248C-4853-AFC6-309A838EA978"
    Public Const EventsId As String = "E81585D3-D5C3-4344-A830-D18A54F6A64E"
    Public Sub New()
        MyBase.New()
    End Sub
    Public Event AnEvent(test As String)
    Public Sub newevent(yourstring As String)
        RaiseEvent AnEvent(yourstring)
    End Sub
End Class

it works fine. however when i use objevent in autoit to hook AnEvent objevent sets @error to 1. where have i err'd

should it be called with Called with

<dllname>.core

<dllname>.core.AnEvent or

<dllname>.AnEvent

or have i written the VB.Net Event Wrong


All my projects live on github

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0