Click here to Skip to main content
15,888,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat's the closest thing to an anonymous struct/array I can achieve that compiles with GCC? Pin
arnold_w9-Sep-20 8:16
arnold_w9-Sep-20 8:16 
AnswerRe: What's the closest thing to an anonymous struct/array I can achieve that compiles with GCC? Pin
Mircea Neacsu9-Sep-20 11:20
Mircea Neacsu9-Sep-20 11:20 
GeneralRe: What's the closest thing to an anonymous struct/array I can achieve that compiles with GCC? Pin
arnold_w9-Sep-20 11:33
arnold_w9-Sep-20 11:33 
AnswerRe: What's the closest thing to an anonymous struct/array I can achieve that compiles with GCC? Pin
Mircea Neacsu9-Sep-20 12:11
Mircea Neacsu9-Sep-20 12:11 
GeneralRe: What's the closest thing to an anonymous struct/array I can achieve that compiles with GCC? Pin
arnold_w9-Sep-20 12:28
arnold_w9-Sep-20 12:28 
GeneralRe: What's the closest thing to an anonymous struct/array I can achieve that compiles with GCC? Pin
Randor 9-Sep-20 12:44
professional Randor 9-Sep-20 12:44 
AnswerRe: What's the closest thing to an anonymous struct/array I can achieve that compiles with GCC? Pin
Joe Woodbury9-Sep-20 12:38
professionalJoe Woodbury9-Sep-20 12:38 
GeneralRe: What's the closest thing to an anonymous struct/array I can achieve that compiles with GCC? Pin
arnold_w9-Sep-20 14:35
arnold_w9-Sep-20 14:35 
Joe Woodbury wrote:
void Function(const std::vector<uint8_t>& values)

Is there anything preventing me from having an override pure C-function (in addition to your C++ function) as follows:
C++
void Function(uint8_t* values)
?
I'm thinking that in that case I would have functions that can be called both from files with .c-extension and .cpp-extension? I'd image const std::vector<uint8_t> stores bytes in memory exactly the same way uint8_t* (or uint8_t[]) does, right?
GeneralRe: What's the closest thing to an anonymous struct/array I can achieve that compiles with GCC? Pin
Joe Woodbury9-Sep-20 15:14
professionalJoe Woodbury9-Sep-20 15:14 
GeneralRe: What's the closest thing to an anonymous struct/array I can achieve that compiles with GCC? Pin
Stefan_Lang15-Sep-20 3:34
Stefan_Lang15-Sep-20 3:34 
AnswerRe: What's the closest thing to an anonymous struct/array I can achieve that compiles with GCC? Pin
arnold_w11-Sep-20 12:46
arnold_w11-Sep-20 12:46 
QuestionCWinThread for background processing Pin
Richard Andrew x645-Sep-20 10:13
professionalRichard Andrew x645-Sep-20 10:13 
AnswerRe: CWinThread for background processing Pin
Mircea Neacsu5-Sep-20 16:18
Mircea Neacsu5-Sep-20 16:18 
GeneralRe: CWinThread for background processing Pin
Richard Andrew x645-Sep-20 17:03
professionalRichard Andrew x645-Sep-20 17:03 
AnswerRe: CWinThread for background processing Pin
Randor 5-Sep-20 16:44
professional Randor 5-Sep-20 16:44 
GeneralRe: CWinThread for background processing Pin
Richard Andrew x645-Sep-20 17:01
professionalRichard Andrew x645-Sep-20 17:01 
GeneralRe: CWinThread for background processing Pin
Randor 5-Sep-20 17:29
professional Randor 5-Sep-20 17:29 
PraiseRe: CWinThread for background processing Pin
CPallini7-Sep-20 1:33
mveCPallini7-Sep-20 1:33 
QuestionGroup policy editor api Pin
Member 1487268130-Aug-20 23:13
Member 1487268130-Aug-20 23:13 
AnswerRe: Group policy editor api Pin
Richard MacCutchan31-Aug-20 1:27
mveRichard MacCutchan31-Aug-20 1:27 
QuestionRe: Group policy editor api Pin
Member 1487268131-Aug-20 17:08
Member 1487268131-Aug-20 17:08 
AnswerRe: Group policy editor api Pin
Richard MacCutchan31-Aug-20 20:57
mveRichard MacCutchan31-Aug-20 20:57 
GeneralRe: Group policy editor api Pin
Member 1487268131-Aug-20 21:33
Member 1487268131-Aug-20 21:33 
GeneralRe: Group policy editor api Pin
Richard MacCutchan31-Aug-20 21:40
mveRichard MacCutchan31-Aug-20 21:40 
AnswerRe: Group policy editor api Pin
Randor 1-Sep-20 23:24
professional Randor 1-Sep-20 23:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.