I am using a DLL developed using Delphi. I tried calling the function in VB and encounter "AccessViolatio nException, Attempted to read or write protected memory"
In the main declaration:
Public PortNo As Integer
Public Res, Fun, Use As Integer
Public AreaID As Integer
Public PersonID, BuyCount, Fmt, Alarm, Shut, Tick, Comer As Integer
Public MaxRe As Integer
Public Buy, Power As Double...