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

C / C++ / MFC

 
Question32 and 64 bit versions of the same project Pin
Richard Andrew x6415-May-21 16:36
professionalRichard Andrew x6415-May-21 16:36 
JokeRe: 32 and 64 bit versions of the same project Pin
Peter_in_278015-May-21 17:00
professionalPeter_in_278015-May-21 17:00 
GeneralRe: 32 and 64 bit versions of the same project Pin
Member 1520359919-May-21 5:05
Member 1520359919-May-21 5:05 
AnswerRe: 32 and 64 bit versions of the same project Pin
Dave Kreskowiak15-May-21 18:10
mveDave Kreskowiak15-May-21 18:10 
AnswerRe: 32 and 64 bit versions of the same project PinPopular
Victor Nijegorodov15-May-21 21:25
Victor Nijegorodov15-May-21 21:25 
GeneralRe: 32 and 64 bit versions of the same project Pin
Richard Andrew x6416-May-21 1:11
professionalRichard Andrew x6416-May-21 1:11 
AnswerRe: 32 and 64 bit versions of the same project Pin
K Personett18-May-21 13:11
K Personett18-May-21 13:11 
QuestionC++ programming Pin
TanyaRaunak15-May-21 2:51
TanyaRaunak15-May-21 2:51 
AnswerRe: C++ programming Pin
Victor Nijegorodov15-May-21 3:50
Victor Nijegorodov15-May-21 3:50 
AnswerRe: C++ programming Pin
Richard MacCutchan15-May-21 6:15
mveRichard MacCutchan15-May-21 6:15 
QuestionMessage Closed Pin
15-May-21 1:38
JimieSitu15-May-21 1:38 
AnswerRe: cross platform dynamic dll Pin
Richard MacCutchan14-May-21 22:21
mveRichard MacCutchan14-May-21 22:21 
GeneralRe: cross platform dynamic dll Pin
Richard Deeming18-May-21 3:24
mveRichard Deeming18-May-21 3:24 
QuestionC++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
charlieg14-May-21 11:01
charlieg14-May-21 11:01 
AnswerRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
k505414-May-21 12:02
mvek505414-May-21 12:02 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
harold aptroot14-May-21 18:58
harold aptroot14-May-21 18:58 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
charlieg16-May-21 3:46
charlieg16-May-21 3:46 
Sorry, I got too specific in my comments and did not provide enough detail. The structure in question is unioned with a communications buffer. The code assumes the structure will fit in the buffer, but there are no checks. It just so happens that the structure extends beyond the communications buffer (from the alignment issue I think - hence my question.

In any event, the result is that the structure's data is truncated with values lost at the end. Luckily, the last 200 bytes or so are spare, so no harm or foul but lousy coding all the same.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...

"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
k505416-May-21 4:51
mvek505416-May-21 4:51 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
charlieg16-May-21 6:05
charlieg16-May-21 6:05 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
Richard MacCutchan16-May-21 21:21
mveRichard MacCutchan16-May-21 21:21 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
charlieg17-May-21 1:37
charlieg17-May-21 1:37 
GeneralRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
Bram van Kampen10-Jun-21 14:33
Bram van Kampen10-Jun-21 14:33 
AnswerRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
Richard MacCutchan14-May-21 22:19
mveRichard MacCutchan14-May-21 22:19 
AnswerRe: C++ Structure layouts - how to determine padding and what not - VS2008 but it's a general question Pin
charlieg16-May-21 1:57
charlieg16-May-21 1:57 
QuestionHow to migrate qt creator project (that doesn't need qt) to visual studio Pin
PristoMiky12-May-21 2:50
PristoMiky12-May-21 2:50 

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.