Sign in to follow this  
Followers 0
plat3n

Programming noobie trying to translate .NET to AutoIt

1 post in this topic

Thanks ahead of time if you can help me, folks -- and I have to beg for your patience with this one. Here's the situation: a vendor's COM API documentation is from a .NET perspective, and I am just abysmally ignorant of that language and OO in general. And here's a question that's an example of of what I need to know:

If I were to try to do the following --

Public Function GetCustomData(ByVal strVar As String) As String
    Try
    'Get the controller
        Dim dc As PCProxyLib.DataController
        dc = GetDataController()
    'Get the ports table
        Dim tbl As PCProxyLib.DataTable
        tbl = dc.GetTable(PCProxyLib._Tables.dtFlags)
    'Save the flags
        GetCustomData = tbl.GetString(strVar)
    Catch ex As Exception
        GetCustomData = ""
        DllErrorHandlingRoutine()
    End Try
End Function 

-- in AutoIt, how would I go about it?

I understand that  Dim dc As PCProxyLib.DataController  is probably equivalent to  Local $dc = ObjCreate(PCProxyLib.DataController)  and so forth -- but the details are bogging me down enough that I just fail to make headway.

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