Click here to Skip to main content
15,893,564 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Project Style "Visual Studio", but Single Document with multiple views Pin
Member 853403522-Aug-15 21:43
Member 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
Vaclav_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
Vaclav_21-Aug-15 5:57 
QuestionUsing #define wrong way ? Pin
Vaclav_20-Aug-15 6:56
Vaclav_20-Aug-15 6:56 
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
Vaclav_20-Aug-15 8:07 
I think I got part of the answer - I am mixing logical operations with math so that is why the first #define works ( compare to value) AFTER I added brackets.
#define PIO_SODR (SAM_MSB << 16 | SAM_LSB + PIO_OFFSET) now passes the value test OK
#define PIOA_SODR (PIO_SODR + PIO_OFFSET)

But the additional offset does not work, but I am getting closer.
Thank for your help.

And it also helps to check if my #define(s) are not duplicated somewhere else !!!

Thanks

modified 20-Aug-15 15:08pm.

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
Vaclav_21-Aug-15 4:12 
GeneralRe: Using #define wrong way ? Pin
Stefan_Lang31-Aug-15 22:02
Stefan_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
venkat28vk18-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
David 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
ThatsAlok20-Aug-15 0:23 
GeneralOT Pin
CPallini20-Aug-15 0:35
mveCPallini20-Aug-15 0:35 
GeneralRe: OT Pin
ThatsAlok20-Aug-15 1:51
ThatsAlok20-Aug-15 1:51 
GeneralRe: OT Pin
ThatsAlok20-Aug-15 1:53
ThatsAlok20-Aug-15 1:53 
QuestionCMFCToolBarComboBoxButton::GetByCmd returns NULL Pin
joliet17-Aug-15 20:26
joliet17-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
Erich Ruth17-Aug-15 10:02 
AnswerRe: Adjust paper size Pin
Kenneth Walters17-Aug-15 11:09
Kenneth Walters17-Aug-15 11:09 
QuestionWindows 10 & WM_QUERY_ENDSESSION/WM_ENDSESSION Pin
Peter Weyzen17-Aug-15 4:51
Peter Weyzen17-Aug-15 4:51 
Questionc++ Qt or C# or JAVA !! Pin
Dreamer_X15-Aug-15 3:51
Dreamer_X15-Aug-15 3:51 
AnswerRe: c++ Qt or C# or JAVA !! Pin
OriginalGriff15-Aug-15 3:54
mveOriginalGriff15-Aug-15 3:54 

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.