Download MetaTrader 5

String problem or bug

To add comments, please log in or register
chinaski
890
chinaski  

Hello, 

can't get a string member variable initialized.


///////////////////////////
/// my_pos 
///////////////////////////
class my_pos : public CPositionInfo
{
public:
    my_pos (string symbol="") : CPositionInfo()
    {
        _symbol=Symbol();
    }
public:
string _symbol;
};

 _symbol always empty.

 

What secret behind this ? 

Anybody can help ?

Thank you 

To add comments, please log in or register