Click here to Skip to main content
15,910,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow can update .properties file Pin
venkatesh5286710-Mar-13 21:46
venkatesh5286710-Mar-13 21:46 
AnswerRe: how can update .properties file Pin
Richard MacCutchan10-Mar-13 23:30
mveRichard MacCutchan10-Mar-13 23:30 
GeneralRe: how can update .properties file Pin
venkatesh5286711-Mar-13 19:51
venkatesh5286711-Mar-13 19:51 
GeneralRe: how can update .properties file Pin
Richard MacCutchan11-Mar-13 22:30
mveRichard MacCutchan11-Mar-13 22:30 
QuestionHow to Resize Static Window Objects Pin
Richard Andrew x6410-Mar-13 16:34
professionalRichard Andrew x6410-Mar-13 16:34 
AnswerRe: How to Resize Static Window Objects Pin
Richard MacCutchan10-Mar-13 23:29
mveRichard MacCutchan10-Mar-13 23:29 
GeneralRe: How to Resize Static Window Objects Pin
Richard Andrew x6411-Mar-13 2:13
professionalRichard Andrew x6411-Mar-13 2:13 
GeneralRe: How to Resize Static Window Objects Pin
Richard MacCutchan11-Mar-13 2:47
mveRichard MacCutchan11-Mar-13 2:47 
QuestionWhy moniker? Pin
Vaclav_10-Mar-13 5:46
Vaclav_10-Mar-13 5:46 
AnswerRe: Why moniker? Pin
dusty_dex10-Mar-13 6:45
dusty_dex10-Mar-13 6:45 
GeneralRe: Why moniker? Pin
Vaclav_10-Mar-13 7:25
Vaclav_10-Mar-13 7:25 
GeneralRe: Why moniker? Pin
dusty_dex10-Mar-13 7:32
dusty_dex10-Mar-13 7:32 
Joke[Challenge/Puzzle] Implement reinterpret_cast Pin
MicroVirus10-Mar-13 3:55
MicroVirus10-Mar-13 3:55 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Richard MacCutchan10-Mar-13 8:07
mveRichard MacCutchan10-Mar-13 8:07 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
MicroVirus10-Mar-13 10:57
MicroVirus10-Mar-13 10:57 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Brandon-X1200010-Mar-13 11:32
Brandon-X1200010-Mar-13 11:32 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Richard MacCutchan10-Mar-13 23:17
mveRichard MacCutchan10-Mar-13 23:17 
AnswerRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Matthew Faithfull11-Mar-13 1:44
Matthew Faithfull11-Mar-13 1:44 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Stefan_Lang11-Mar-13 23:18
Stefan_Lang11-Mar-13 23:18 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Matthew Faithfull11-Mar-13 23:40
Matthew Faithfull11-Mar-13 23:40 
I haven't tried it as it's, as you point out, not of practical use but &i is certainly integral. Another step may be needed to get around restrictions on adding pointers to pointers but the principle is the same. The multiplication by sizeof(int) is not an really issue as this can be overcome without any casting.
The addition was a syntactic nicety to explain what I was doing anyway and is not strictly necessary. How about:-

int i = 42;
int** ppint = &i;
int* pint = *ppint;


which is shorter and doesn't do pointer arithmetic.
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)

GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
MicroVirus13-Mar-13 11:12
MicroVirus13-Mar-13 11:12 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Matthew Faithfull13-Mar-13 11:18
Matthew Faithfull13-Mar-13 11:18 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
MicroVirus13-Mar-13 11:29
MicroVirus13-Mar-13 11:29 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
Stefan_Lang11-Mar-13 3:29
Stefan_Lang11-Mar-13 3:29 
GeneralRe: [Challenge/Puzzle] Implement reinterpret_cast Pin
harold aptroot11-Mar-13 9:03
harold aptroot11-Mar-13 9:03 

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.