Has anyone come across the following
I have a script with the following declarations
string symbol = "XXXXXX";
string open = "open"; string stop = "stop"; string takeP = "take";
double Levels[3];
int Data[1];
I then call a DLL declared as follows
void GetParmQuery(string symbol, string open, string stop, string takeP,
double& Levels[], int& Data[]);
The values returned from the DLL are as expected ie the default values for symbol, open, stop and takeP have been changed However if I then do the following test
if (open != "open")
Print("NE");
else
Print("EQ");
the test fails and I get "EQ" printed
Any ideas what is happening and can it be fixed without a messy work around
Thanks
I have a script with the following declarations
string symbol = "XXXXXX";
string open = "open"; string stop = "stop"; string takeP = "take";
double Levels[3];
int Data[1];
I then call a DLL declared as follows
void GetParmQuery(string symbol, string open, string stop, string takeP,
double& Levels[], int& Data[]);
The values returned from the DLL are as expected ie the default values for symbol, open, stop and takeP have been changed However if I then do the following test
if (open != "open")
Print("NE");
else
Print("EQ");
the test fails and I get "EQ" printed
Any ideas what is happening and can it be fixed without a messy work around
Thanks