Hi All,

1. I have created a simple DLL  and tried to call a basic function
from the DLL with zero success:
2. I put the MYDLL.dll file in AB Plugins directory ( as required ).

Any idea why i CreateObject() fails ? 

Regards,
Hanan Harush

# here is my code
Public Class MYDLL
    Private _VERSION As Integer 
    Public Sub New()
        _VERSION  = 56
    End Sub

    Public Function getVersion() As integer
        Return  _VERSION
    End Function

End Class

# and my AFL code:
myobj = CreateObject("MYDLL");

if (myobj)
{
ver=myobj.getVersion();

_TRACE("SUCCESS" + ver); 

}

else
{

_TRACE("FAILED " ); 
}
Buy = 5;
Sell =10;
Plot(Close,"Price",colorBlack,styleBar);


Reply via email to