[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Visual Basic 6 AxtiveX DLL and EasyLanguage?



PureBytes Links

Trading Reference Links

Hi all,

I'm doing some tests:
I'm trying to use a DLL created with Visual Basic 6.
In this DLL, I created a function which works fine with an EXE file
Then I tried to use my DLL with EasyLanguage, but when I insert the analysis
technique into a chart a Message Box pops up :

"Link error :
Cannot find function ValeurPerso"

TradeStation finds my DLL but doesn't find the function I wrote in it.

Is there anyone able to help me?

Below is the Analysis technique I created to retrieve  the Value of my
custom function named "ValeurPerso":
{***************************************
 #EssaiDLL

 Written by: Philippe Lhermie

 Description: Visual Basic6 DLL Test
****************************************}


{DefineDLLFunc: "DLLNAME.DLL", return type, "FunctionName", parameters;}


DefineDLLFunc: "ProjetOmega1.DLL",Long,"ValeurPerso",Long;

If LastBarOnChart then Print(ValeurPerso(4));

============================

Below is the function created in ProjetOmega1.DLL:

Private Function ValeurPerso(LastValue As Long) As Long
      ValeurPerso = LastValue * 2
End Function

'I put this DLL into c:\Windows\system as usual



Regards,
Philippe

°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
philippe.lhermie@xxxxxxxxxxx

°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°