unicorn6684:
Please show your code . . . at least the lines that produce the "not defined" error, alternatively, and preferably, provide full sample code to reproduce the issue.
When I try to use some constants I get a "not defined" error
I'm talking about the messegebox's constants that start with MB_ and ID
and the SendOrder's Constants that start with an OP_
anyone knows how to solve it?
unicorn6684:I get a "not defined" error the messegebox's constants that start with MB_ and ID anyone knows how to solve it?
Yes, you need to RTFMSample:
RTFM #include <WinUser32.mqh>
if(ObjectCreate("text_object", OBJ_TEXT, 0, D'2004.02.20 12:30', 1.0045)==false)
{
int ret=MessageBox(" ObjectCreate() function returned the "+GetLastError()+" error\nContinue?", "Question", MB_YESNO|MB_ICONQUESTION);
if(ret==IDNO) return(false);
}
// continue
MessageBox() function behavior flags are defined in the WinUser32.mqh file, this is why this heading file
must be included to programs through #include <WinUser32.mqh>. Not all possible flags are listed here. For more
details, please refer to Win32 API description.
Did I say to RTFMThese return codes are defined in the WinUser32.mqh file, so this header
file must be included in programs by #include <WinUser32.mqh>.
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
When I try to use some constants I get a "not defined" error
I'm talking about the messegebox's constants that start with MB_ and ID
and the SendOrder's Constants that start with an OP_
anyone knows how to solve it?