mnbvcxz555:
Hi,
Can anyone tell me how I can pass object reference to function? I have tried something like this:
CXmlElement ResponseXml;
void Init() {
(some code)
SomeMetod(ResponseXml);
}
void SomeMethod(CXmlElement &xml)
{
(some code)
}
but I get error that CXmlElement variable is without type.. Anyone knows how to resolve that?
Best!
- include header where CXmlElement is declared
- if & not work, use SomeMethod(CXmlElement *xml) and use function CheckPointer for xml.
Is it something like this https://www.mql5.com/en/forum/10439#comment_420853 ?
Error --> invalid array access --> structure have objects and cannot be copied
- www.mql5.com
Error --> invalid array access --> structure have objects and cannot be copied.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
Can anyone tell me how I can pass object reference to function? I have tried something like this:
CXmlElement ResponseXml;
void Init() {
(some code)
SomeMetod(ResponseXml);
}
void SomeMethod(CXmlElement &xml)
{
(some code)
}
but I get error that CXmlElement variable is without type.. Anyone knows how to resolve that?
Best!