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


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

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 16:43 -0800
Organization A noiseless patient Spider
Message-ID <qu68fg$cfh$1@dont-email.me> (permalink)
References <qu5thi$n7g$1@dont-email.me> <qu64im$qnh$2@redfloyd.dont-email.me>

Show all headers | View raw


On 2019-12-27 15:36, red floyd wrote:
> On 12/27/19 1:36 PM, 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?
>>
>>
>> Many thanks,
>> -T
> 
> Please take your windows question to a windows group.  This group is
> for discussing the C++ language as defined by ISO 14882.

Red,

Read my question a little more closely.  That was a C++
question

-T

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