Groups
Groups
Sign in
Groups
Groups
comp.lang.c++
Conversations
About
Send feedback
Help
Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Learn more
What is | in a sub call?
31 views
Skip to first unread message
T
unread,
Dec 27, 2019, 4:36:58 PM
12/27/19
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
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
Ian Collins
unread,
Dec 27, 2019, 4:42:23 PM
12/27/19
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Yes.
--
Ian.
T
unread,
Dec 27, 2019, 4:56:47 PM
12/27/19
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Thank you!
I was channeling Bash and thought they were being
pipped to each other. Chuckle!
red floyd
unread,
Dec 27, 2019, 6:37:00 PM
12/27/19
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Please take your windows question to a windows group. This group is
for discussing the C++ language as defined by ISO 14882.
T
unread,
Dec 27, 2019, 7:43:35 PM
12/27/19
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Red,
Read my question a little more closely. That was a C++
question
-T
James Kuyper
unread,
Dec 27, 2019, 8:52:56 PM
12/27/19
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
The meaning of "|" in that context is a C++ question, not a windows
question.
red floyd
unread,
Jan 2, 2020, 7:07:29 PM
1/2/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
On 12/27/19 5:52 PM, James Kuyper wrote:
> [conversation redacted]
>
> The meaning of "|" in that context is a C++ question, not a windows
> question.
>
You are correct. My mistake. I had had a very bad week.
I apologize.
0 new messages