MT3: Bad DLL calling convention Error

 
Hello,
I am trying to log into my MT3 account from Excel by using VBA and mtapi.dll but cannot make it work. My declaration is:

Private Declare Function MtConnect Lib "mtapi.dll" (ByVal handle As Integer, ByVal server As String, ByVal port As Integer) As Integer

and then I am calling the function with:

Call MtConnect(1, "11.111.111.11", 1111)

I would greatly appreciate if someone can help by sharing some knowledge.
Reason: