Click here to Skip to main content
15,923,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ownerdarw Combobox Pin
AbhiHcl28-Jun-10 23:54
AbhiHcl28-Jun-10 23:54 
GeneralRe: Ownerdarw Combobox Pin
Aescleal28-Jun-10 23:59
Aescleal28-Jun-10 23:59 
GeneralRe: Ownerdarw Combobox Pin
Nibu babu thomas29-Jun-10 2:01
Nibu babu thomas29-Jun-10 2:01 
AnswerRe: Ownerdarw Combobox Pin
Aescleal28-Jun-10 23:58
Aescleal28-Jun-10 23:58 
Questionswap different sized string Pin
rupeshkp72828-Jun-10 22:05
rupeshkp72828-Jun-10 22:05 
AnswerRe: swap different sized string Pin
Cedric Moonen28-Jun-10 22:14
Cedric Moonen28-Jun-10 22:14 
GeneralRe: swap different sized string Pin
rupeshkp72828-Jun-10 22:26
rupeshkp72828-Jun-10 22:26 
GeneralRe: swap different sized string Pin
Aescleal28-Jun-10 23:51
Aescleal28-Jun-10 23:51 
You might feel this is being overly pedantic... trust me it's not. You don't store strings in pointers - all you store in pointers are addresses. It just so happens that the character pointers you're talking about point to the first character of the block of memory you've got the characters representing the string in.

If you understand that then it should be fairly easy to work out how to switch the pointers around and get the result you're after.

Cheers,

Ash
AnswerRe: swap different sized string Pin
Adam Roderick J28-Jun-10 22:14
Adam Roderick J28-Jun-10 22:14 
GeneralRe: swap different sized string Pin
rupeshkp72828-Jun-10 22:40
rupeshkp72828-Jun-10 22:40 
AnswerRe: swap different sized string Pin
Niklas L28-Jun-10 22:29
Niklas L28-Jun-10 22:29 
NewsRe: swap different sized string Pin
rupeshkp72829-Jun-10 2:18
rupeshkp72829-Jun-10 2:18 
AnswerRe: swap different sized string Pin
Eugen Podsypalnikov28-Jun-10 22:30
Eugen Podsypalnikov28-Jun-10 22:30 
AnswerRe: swap different sized string Pin
Aescleal28-Jun-10 23:45
Aescleal28-Jun-10 23:45 
GeneralRe: swap different sized string Pin
rupeshkp72829-Jun-10 2:16
rupeshkp72829-Jun-10 2:16 
QuestionArray of Buttons [Solved] Pin
T.RATHA KRISHNAN28-Jun-10 21:36
T.RATHA KRISHNAN28-Jun-10 21:36 
AnswerRe: Array of Buttons Pin
Cedric Moonen28-Jun-10 21:50
Cedric Moonen28-Jun-10 21:50 
GeneralRe: Array of Buttons Pin
T.RATHA KRISHNAN28-Jun-10 22:13
T.RATHA KRISHNAN28-Jun-10 22:13 
QuestionIHTMLElement usage crash in VC++ Pin
Pk.j28-Jun-10 20:09
Pk.j28-Jun-10 20:09 
AnswerRe: IHTMLElement usage crash in VC++ PinPopular
SandipG 28-Jun-10 21:22
SandipG 28-Jun-10 21:22 
GeneralRe: IHTMLElement usage crash in VC++ Pin
Niklas L28-Jun-10 21:30
Niklas L28-Jun-10 21:30 
GeneralRe: IHTMLElement usage crash in VC++ Pin
Pk.j28-Jun-10 23:48
Pk.j28-Jun-10 23:48 
AnswerRe: IHTMLElement usage crash in VC++ Pin
Niklas L28-Jun-10 21:29
Niklas L28-Jun-10 21:29 
GeneralRe: IHTMLElement usage crash in VC++ Pin
Pk.j28-Jun-10 23:54
Pk.j28-Jun-10 23:54 
GeneralRe: IHTMLElement usage crash in VC++ Pin
Niklas L29-Jun-10 9:59
Niklas L29-Jun-10 9:59 

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.