Click here to Skip to main content
15,942,707 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Type struct question Pin
Jochen Arndt24-Apr-17 2:24
professionalJochen Arndt24-Apr-17 2:24 
GeneralRe: Type struct question Pin
samzcs24-Apr-17 2:43
samzcs24-Apr-17 2:43 
GeneralRe: Type struct question Pin
Jochen Arndt24-Apr-17 2:58
professionalJochen Arndt24-Apr-17 2:58 
GeneralRe: Type struct question Pin
leon de boer25-Apr-17 4:22
leon de boer25-Apr-17 4:22 
GeneralRe: Type struct question Pin
Jochen Arndt25-Apr-17 5:27
professionalJochen Arndt25-Apr-17 5:27 
GeneralRe: Type struct question Pin
leon de boer25-Apr-17 6:12
leon de boer25-Apr-17 6:12 
GeneralRe: Type struct question Pin
Munchies_Matt24-Apr-17 3:00
Munchies_Matt24-Apr-17 3:00 
AnswerRe: Type struct question Pin
Stefan_Lang26-Apr-17 1:42
Stefan_Lang26-Apr-17 1:42 
This doesn't seem to make sense: the inner struct is just a type definition without an actual typename, but it does not define a variable of that type:
struct { // <-- no typedef, no tag to use as a struct identifier
    u32_T  ASID:10,          /* Bit 0-15, Address space identifier */
           rsvd1:22;         /* Bit10-31, reserved */
}; // <-- end of type specification, but no variable name

You might just as well delete that inner struct declaration, since, being unnamed and unused, there is no way to use it later.

If you move the symbol asid to the end of that type declaration, asid would be a struct, not an int, although it would occupy exactly 4 bytes, which may or may not coincide with the size of an int in your system.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralRe: Type struct question Pin
samzcs26-Apr-17 3:32
samzcs26-Apr-17 3:32 
QuestionPerformance Evaluation of fingerprint recognition and face recognition system Pin
Member 1313893619-Apr-17 8:38
Member 1313893619-Apr-17 8:38 
AnswerRe: Performance Evaluation of fingerprint recognition and face recognition system Pin
Afzaal Ahmad Zeeshan19-Apr-17 8:56
professionalAfzaal Ahmad Zeeshan19-Apr-17 8:56 
GeneralRe: Performance Evaluation of fingerprint recognition and face recognition system Pin
Member 1313893619-Apr-17 10:38
Member 1313893619-Apr-17 10:38 
QuestionCFileDialog fileDlg debug assertion error Pin
D.Manivelan19-Apr-17 3:07
D.Manivelan19-Apr-17 3:07 
AnswerRe: CFileDialog fileDlg debug assertion error Pin
Jochen Arndt19-Apr-17 3:48
professionalJochen Arndt19-Apr-17 3:48 
AnswerRe: CFileDialog fileDlg debug assertion error Pin
Randor 19-Apr-17 19:25
professional Randor 19-Apr-17 19:25 
QuestionSharing a structure between a console application and a static library Pin
manoharbalu17-Apr-17 21:51
manoharbalu17-Apr-17 21:51 
AnswerRe: Sharing a structure between a console application and a static library Pin
Richard MacCutchan18-Apr-17 3:04
mveRichard MacCutchan18-Apr-17 3:04 
AnswerRe: Sharing a structure between a console application and a static library Pin
Chris Losinger18-Apr-17 3:07
professionalChris Losinger18-Apr-17 3:07 
GeneralRe: Sharing a structure between a console application and a static library Pin
Richard MacCutchan18-Apr-17 5:18
mveRichard MacCutchan18-Apr-17 5:18 
GeneralRe: Sharing a structure between a console application and a static library Pin
Chris Losinger18-Apr-17 5:22
professionalChris Losinger18-Apr-17 5:22 
GeneralRe: Sharing a structure between a console application and a static library Pin
Richard MacCutchan19-Apr-17 5:39
mveRichard MacCutchan19-Apr-17 5:39 
GeneralRe: Sharing a structure between a console application and a static library Pin
Chris Losinger19-Apr-17 5:44
professionalChris Losinger19-Apr-17 5:44 
GeneralRe: Sharing a structure between a console application and a static library Pin
Richard MacCutchan19-Apr-17 6:09
mveRichard MacCutchan19-Apr-17 6:09 
GeneralRe: Sharing a structure between a console application and a static library Pin
Munchies_Matt19-Apr-17 5:18
Munchies_Matt19-Apr-17 5:18 
GeneralRe: Sharing a structure between a console application and a static library Pin
Chris Losinger19-Apr-17 5:22
professionalChris Losinger19-Apr-17 5:22 

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.