Using a string Variable with "-" in a DLL (EU

Questions about MultiCharts and user contributed studies.
Guest

Using a string Variable with "-" in a DLL (EU

Postby Guest » 17 May 2009

Hi

If I use the function SymbolName (which return a string)

to send the symbol name "EUR A0-FX" to a DLL, the DLL receive only :

"EUR A0", it seem the "-" make desappear the rest of the name.

if I PRINT SymbolName , I get the full name on the output log but not

if I use is to tranfer the symbole name to a dll function :

Example :

DefineDllFunc: "MyDLL.dll",LONG, "Test",string;
Var=Test(SymbolName);


Then I tried :

variables: string SymbolName1("");
SymbolName1=SymbolName ; (String to String should work)

DefineDllFunc: "MyDLL.dll",LONG, "Test",string;
Var=Test(SymbolName1);

the DLL receive "E" :?:

Is SymbolName really a string ?

How can I use SymbolName with "-" (like" EUR A0-FX") to transfer the compleat name ? in a DLL

is the string "-" not compatible inside the string name when we use a DLL ?

Emmanuel

Guest

MY Mistake

Postby Guest » 17 May 2009

:oops: Hi,


:oops:
It was my code in the my Dll which remove the rest of the string .

Please DISREGARD THE MESSAGE ABOVE :oops:

This is my mistake, :oops:

Emmanuel


Return to “MultiCharts”