Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #70704

Re: What is | in a sub call?

From T <T@invalid.invalid>
Newsgroups comp.lang.c++
Subject Re: What is | in a sub call?
Date 2019-12-27 13:56 -0800
Organization A noiseless patient Spider
Message-ID <qu5umn$7lm$3@dont-email.me> (permalink)
References <qu5thi$n7g$1@dont-email.me> <h6nc5mFctnvU4@mid.individual.net>

Show all headers | View raw


On 2019-12-27 13:42, Ian Collins wrote:
> On 28/12/2019 10:36, T wrote:
>> Hi All,
>>
>> https://stackoverflow.com/questions/1387064/how-to-get-the-error-message-from-the-error-code-returned-by-getlasterror 
>>
>>
>> size_t size = FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
>> FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
>>                                    NULL, errorMessageID,
>> MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&messageBuffer, 0, 
>> NULL);
>>
>>
>> What is the | do in
>>
>> FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
>> FORMAT_MESSAGE_IGNORE_INSERTS
>>
>> ?
>>
>> Is it bitwise OR'ing the three constants?
> 
> Yes.
> 


Thank you!

I was channeling Bash and thought they were being
pipped to each other.  Chuckle!

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

What is | in a sub call? T <T@invalid.invalid> - 2019-12-27 13:36 -0800
  Re: What is | in a sub call? Ian Collins <ian-news@hotmail.com> - 2019-12-28 10:42 +1300
    Re: What is | in a sub call? T <T@invalid.invalid> - 2019-12-27 13:56 -0800
  Re: What is | in a sub call? red floyd <no.spam@its.invalid> - 2019-12-27 15:36 -0800
    Re: What is | in a sub call? T <T@invalid.invalid> - 2019-12-27 16:43 -0800
    Re: What is | in a sub call? James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-12-27 20:52 -0500
      Re: What is | in a sub call? red floyd <no.spam@its.invalid> - 2020-01-02 16:07 -0800

csiph-web