Click here to Skip to main content
14,541,821 members

C / C++ / MFC

 
QuestionMFC Project Style "Visual Studio", but Single Document with multiple views Pin
Member 853403521-Aug-15 5:34
MemberMember 853403521-Aug-15 5:34 
AnswerRe: MFC Project Style "Visual Studio", but Single Document with multiple views Pin
Richard MacCutchan21-Aug-15 6:10
mveRichard MacCutchan21-Aug-15 6:10 
GeneralRe: MFC Project Style "Visual Studio", but Single Document with multiple views Pin
Member 853403522-Aug-15 21:43
MemberMember 853403522-Aug-15 21:43 
GeneralRe: MFC Project Style "Visual Studio", but Single Document with multiple views Pin
Richard MacCutchan23-Aug-15 1:09
mveRichard MacCutchan23-Aug-15 1:09 
QuestionAccessing struct member and getting error I do not know how to fix it. Pin
Vaclav_21-Aug-15 4:08
MemberVaclav_21-Aug-15 4:08 
AnswerRe: Accessing struct member and getting error I do not know how to fix it. Pin
Richard MacCutchan21-Aug-15 4:21
mveRichard MacCutchan21-Aug-15 4:21 
GeneralSOLVED : Accessing struct member and getting error I do not know how to fix it. Pin
Vaclav_21-Aug-15 5:57
MemberVaclav_21-Aug-15 5:57 
QuestionUsing #define wrong way ? Pin
Vaclav_20-Aug-15 6:56
MemberVaclav_20-Aug-15 6:56 
I am trying to build SAM3x8E registers database.
I though I could use serial of #define(s) to do that but run into a problem

In this sample I can build PIO_SODR but I cannot add another (port) offset to it - see PIOA_SODR.

I think the problem is my defines are not really int (32 bits) , but only symbols.
I did compare the (symbol) PIO_SODR to its true hex value and it failed.

BUT - I can add the first offset of 0x30 no problem. Ether plain add (+) or (|) or works.

Any help would be as always appreciated.

/* MSD upper 16 bits byte base*/ 
#define SAM_MSB  0x400E               //MSD upper 16 bits byte base
 /* LSD lower 16 bits byte base */            
#define SAM_LSB  0xE00   
/* PIO offset from PIO A and up */           
#define PIO_OFFSET        0x200  
/* status ouput data register */            
#define PIO_SODR  SAM_MSB << 16 | SAM_LSB + 0x30       // base plus reg offset OK 
#define PIOA_SODR PIO_SODR + 0x200  // add in another offset fails


modified 20-Aug-15 13:13pm.

AnswerRe: Using #define wrong way ? Pin
k505420-Aug-15 7:10
mvek505420-Aug-15 7:10 
GeneralSOLVED Re: Using #define wrong way ? Pin
Vaclav_20-Aug-15 8:07
MemberVaclav_20-Aug-15 8:07 
QuestionRe: Using #define wrong way ? Pin
CPallini20-Aug-15 21:06
mveCPallini20-Aug-15 21:06 
AnswerRe: Using #define wrong way ? Pin
Vaclav_21-Aug-15 4:12
MemberVaclav_21-Aug-15 4:12 
GeneralRe: Using #define wrong way ? Pin
Stefan_Lang31-Aug-15 22:02
mveStefan_Lang31-Aug-15 22:02 
QuestionHow to send a text file from C to java and receive the same text file from java to C Pin
venkat28vk18-Aug-15 20:57
Membervenkat28vk18-Aug-15 20:57 
AnswerRe: How to send a text file from C to java and receive the same text file from java to C Pin
Richard MacCutchan18-Aug-15 21:53
mveRichard MacCutchan18-Aug-15 21:53 
QuestionRe: How to send a text file from C to java and receive the same text file from java to C Pin
David Crow19-Aug-15 5:24
MemberDavid Crow19-Aug-15 5:24 
AnswerRe: How to send a text file from C to java and receive the same text file from java to C Pin
ThatsAlok20-Aug-15 0:23
MemberThatsAlok20-Aug-15 0:23 
GeneralOT Pin
CPallini20-Aug-15 0:35
mveCPallini20-Aug-15 0:35 
GeneralRe: OT Pin
ThatsAlok20-Aug-15 1:51
MemberThatsAlok20-Aug-15 1:51 
GeneralRe: OT Pin
ThatsAlok20-Aug-15 1:53
MemberThatsAlok20-Aug-15 1:53 
QuestionCMFCToolBarComboBoxButton::GetByCmd returns NULL Pin
joliet17-Aug-15 20:26
Memberjoliet17-Aug-15 20:26 
AnswerRe: CMFCToolBarComboBoxButton::GetByCmd returns NULL Pin
Jochen Arndt17-Aug-15 20:59
professionalJochen Arndt17-Aug-15 20:59 
QuestionAdjust paper size Pin
Erich Ruth17-Aug-15 10:02
MemberErich Ruth17-Aug-15 10:02 
AnswerRe: Adjust paper size Pin
Kenneth Walters17-Aug-15 11:09
MemberKenneth Walters17-Aug-15 11:09 
QuestionWindows 10 & WM_QUERY_ENDSESSION/WM_ENDSESSION Pin
Peter Weyzen17-Aug-15 4:51
MemberPeter Weyzen17-Aug-15 4:51 

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.