Click here to Skip to main content
15,896,912 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pointer Maths [modified] Pin
Stefan_Lang12-Jul-11 3:52
Stefan_Lang12-Jul-11 3:52 
GeneralRe: Pointer Maths Pin
Legor12-Jul-11 4:02
Legor12-Jul-11 4:02 
GeneralRe: Pointer Maths Pin
Stefan_Lang12-Jul-11 4:16
Stefan_Lang12-Jul-11 4:16 
AnswerRe: Pointer Maths Pin
Legor12-Jul-11 3:55
Legor12-Jul-11 3:55 
GeneralRe: Pointer Maths Pin
Rick York13-Jul-11 18:39
mveRick York13-Jul-11 18:39 
GeneralRe: Pointer Maths Pin
Legor17-Jul-11 0:39
Legor17-Jul-11 0:39 
GeneralRe: Pointer Maths Pin
enhzflep13-Jul-11 19:14
enhzflep13-Jul-11 19:14 
GeneralRe: Pointer Maths Pin
Richard MacCutchan13-Jul-11 21:53
mveRichard MacCutchan13-Jul-11 21:53 
Legor wrote:
When using sizeof with a structure it is not guaranteed that you get the sum of the single components due to Structure padding

But it doesn't matter since you will always get the size of the actual structure as created by the compiler, so you can still use sizeof to increment a void pointer.

However, as you rightly point out, that is a stupid way to do it since normal increment/decrement or indexing is the correct way.
The best things in life are not things.

QuestionHow to do 2 or more process simultaneously? Pin
Le@rner12-Jul-11 2:21
Le@rner12-Jul-11 2:21 
QuestionRe: How to do 2 or more process simultaneously? Pin
CPallini12-Jul-11 3:02
mveCPallini12-Jul-11 3:02 
AnswerRe: How to do 2 or more process simultaneously? Pin
Le@rner12-Jul-11 18:26
Le@rner12-Jul-11 18:26 
GeneralRe: How to do 2 or more process simultaneously? [fixed] Pin
CPallini12-Jul-11 21:09
mveCPallini12-Jul-11 21:09 
GeneralRe: How to do 2 or more process simultaneously? Pin
Le@rner12-Jul-11 21:16
Le@rner12-Jul-11 21:16 
GeneralRe: How to do 2 or more process simultaneously? Pin
CPallini12-Jul-11 21:24
mveCPallini12-Jul-11 21:24 
AnswerRe: How to do 2 or more process simultaneously? Pin
Albert Holguin12-Jul-11 4:56
professionalAlbert Holguin12-Jul-11 4:56 
AnswerRe: How to do 2 or more process simultaneously? Pin
jschell12-Jul-11 10:21
jschell12-Jul-11 10:21 
GeneralRe: How to do 2 or more process simultaneously? Pin
Le@rner12-Jul-11 19:54
Le@rner12-Jul-11 19:54 
GeneralRe: How to do 2 or more process simultaneously? Pin
Chris Walters13-Jul-11 6:24
Chris Walters13-Jul-11 6:24 
AnswerRe: How to do 2 or more process simultaneously? Pin
Eugen Podsypalnikov12-Jul-11 22:18
Eugen Podsypalnikov12-Jul-11 22:18 
GeneralRe: How to do 2 or more process simultaneously? Pin
Le@rner15-Jul-11 21:57
Le@rner15-Jul-11 21:57 
QuestionHow to set the multi selection property of a list box as TRUE through the code Pin
Amrit Agr12-Jul-11 0:34
Amrit Agr12-Jul-11 0:34 
AnswerRe: How to set the multi selection property of a list box as TRUE through the code Pin
Richard MacCutchan12-Jul-11 0:37
mveRichard MacCutchan12-Jul-11 0:37 
AnswerRe: How to set the multi selection property of a list box as TRUE through the code Pin
Eugen Podsypalnikov13-Jul-11 0:16
Eugen Podsypalnikov13-Jul-11 0:16 
QuestionHow to catch TVM_DELETE or TVN_DELTEITEM from a custom tree control. Pin
Amrit Agr11-Jul-11 20:29
Amrit Agr11-Jul-11 20:29 
AnswerRe: How to catch TVM_DELETE or TVN_DELTEITEM from a custom tree control. Pin
Code-o-mat11-Jul-11 21:50
Code-o-mat11-Jul-11 21: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.