The function name of extern Dll is the same as keyword of EL

Questions about MultiCharts and user contributed studies.
Morgan
Posts: 16
Joined: 29 Oct 2014
Has thanked: 1 time
Been thanked: 1 time

The function name of extern Dll is the same as keyword of EL

Postby Morgan » 13 Mar 2015

Hello

I've got an indicator from TS.
It uses an extern dll.

defineDLLfunc: "c:\ind\func.dll", INT, "buy", FLOAT ,FLOAT ,FLOAT ,FLOAT;
...
...
...
buy (Var18, Var18[1], Var18[2], BuyLine)
...
...


It's compiled failed on Multicharts because the "buy" is reserved keyword in EasyLanguage I think.
But it can compiled ok and work well on TS.
So I want to know if it's possible I can use it well on Multicharts, too.
And how I can do?

Thanks

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: The function name of extern Dll is the same as keyword o

Postby Henry MultiСharts » 27 Mar 2015

Hello Morgan,

If you have the source code of the dll then you can change the name of the exported function. If you don't have it then you'll need to write a wrapper for this dll that will call the function from the func.dll. Then the code in MultiCharts should call the function from the wrapper.


Return to “MultiCharts”