Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using menu key Pin
_Flaviu23-Apr-17 22:15
_Flaviu23-Apr-17 22:15 
GeneralRe: Using menu key Pin
Richard MacCutchan23-Apr-17 22:56
mveRichard MacCutchan23-Apr-17 22:56 
AnswerRe: Using menu key Pin
Jochen Arndt23-Apr-17 22:40
professionalJochen Arndt23-Apr-17 22:40 
GeneralRe: Using menu key Pin
_Flaviu23-Apr-17 23:11
_Flaviu23-Apr-17 23:11 
QuestionNot getting the visible bottom index of the List Control in MFC? Pin
SanjayK7023-Apr-17 1:44
SanjayK7023-Apr-17 1:44 
AnswerRe: Not getting the visible bottom index of the List Control in MFC? Pin
Michael_Davies23-Apr-17 1:55
Michael_Davies23-Apr-17 1:55 
GeneralRe: Not getting the visible bottom index of the List Control in MFC? Pin
SanjayK7025-Apr-17 18:58
SanjayK7025-Apr-17 18:58 
AnswerRe: Not getting the visible bottom index of the List Control in MFC? Pin
Jochen Arndt23-Apr-17 21:17
professionalJochen Arndt23-Apr-17 21:17 
GeneralRe: Not getting the visible bottom index of the List Control in MFC? Pin
SanjayK7025-Apr-17 18:57
SanjayK7025-Apr-17 18:57 
QuestionFind the Eigenvalues and Eigenvectors using C Language Pin
Member 1314582022-Apr-17 17:27
Member 1314582022-Apr-17 17:27 
AnswerRe: Find the Eigenvalues and Eigenvectors using C Language Pin
Richard MacCutchan22-Apr-17 20:59
mveRichard MacCutchan22-Apr-17 20:59 
AnswerRe: Find the Eigenvalues and Eigenvectors using C Language Pin
Victor Nijegorodov22-Apr-17 23:03
Victor Nijegorodov22-Apr-17 23:03 
AnswerRe: Find the Eigenvalues and Eigenvectors using C Language Pin
Victor Nijegorodov22-Apr-17 23:05
Victor Nijegorodov22-Apr-17 23:05 
QuestionType struct question Pin
samzcs21-Apr-17 9:28
samzcs21-Apr-17 9:28 
I read a demo code from a semiconductor producer, in cpu.h, there are some typedef structs for registers.
C++
typedef struct {
    u32_T   asid;                /* ASID, 32-bit access */
    struct {
        u32_T  ASID:10,          /* Bit 0-15, Address space identifier */
               rsvd1:22;         /* Bit10-31, reserved */
    };
} ASID_T;

According to the comments, I think the writer thought he defined a struct to represent the asid register, and the struct can be accessed in 32 bit pattern or bit-field way.

But, is this struct can do that, I mean, are the U32_T asid and the anonymous struct share a same memory location? I think it can't work. just want to hear some other opinions.

modified 21-Apr-17 15:42pm.

AnswerRe: Type struct question Pin
Jochen Arndt21-Apr-17 21:31
professionalJochen Arndt21-Apr-17 21:31 
GeneralRe: Type struct question Pin
samzcs24-Apr-17 2:18
samzcs24-Apr-17 2:18 
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 
GeneralRe: Type struct question Pin
samzcs26-Apr-17 3:32
samzcs26-Apr-17 3:32 

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.