missing contants

 

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:

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?

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.
 
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 RTFM
Sample:
  #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
RTFM
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 RTFM
These return codes are defined in the WinUser32.mqh file, so this header file must be included in programs by #include <WinUser32.mqh>.