Click here to Skip to main content
15,846,826 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem with Imagelist_LoadBitmap Pin
Niklas L29-May-11 9:39
Niklas L29-May-11 9:39 
QuestionPassing char* to a function and change the argument problem Pin
.jpg29-May-11 7:24
.jpg29-May-11 7:24 
AnswerRe: Passing char* to a function and change the argument problem Pin
CPallini29-May-11 7:38
mveCPallini29-May-11 7:38 
AnswerRe: Passing char* to a function and change the argument problem Pin
Richard MacCutchan29-May-11 14:26
mveRichard MacCutchan29-May-11 14:26 
GeneralRe: Passing char* to a function and change the argument problem Pin
MicroVirus30-May-11 4:37
MicroVirus30-May-11 4:37 
GeneralRe: Passing char* to a function and change the argument problem Pin
Richard MacCutchan30-May-11 5:13
mveRichard MacCutchan30-May-11 5:13 
GeneralRe: Passing char* to a function and change the argument problem Pin
MicroVirus30-May-11 5:39
MicroVirus30-May-11 5:39 
AnswerRe: Passing char* to a function and change the argument problem Pin
«_Superman_»29-May-11 20:30
professional«_Superman_»29-May-11 20:30 
The other answers tell you how it can be done.
But there is a risk factor here, in that the size of the buffer is not known to the ChangeString function.
So it is always safe to pass in a second size parameter and only copy that many characters to the buffer inside the ChangeString function.
«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++)

Polymorphism in C

GeneralRe: Passing char* to a function and change the argument problem Pin
Richard MacCutchan29-May-11 23:49
mveRichard MacCutchan29-May-11 23:49 
Questionproblem releasing .exe to vs2008 users Pin
UdiOshi28-May-11 5:49
UdiOshi28-May-11 5:49 
AnswerRe: problem releasing .exe to vs2008 users Pin
barneyman28-May-11 6:17
barneyman28-May-11 6:17 
GeneralRe: problem releasing .exe to vs2008 users Pin
UdiOshi28-May-11 6:20
UdiOshi28-May-11 6:20 
AnswerRe: problem releasing .exe to vs2008 users Pin
«_Superman_»28-May-11 18:31
professional«_Superman_»28-May-11 18:31 
QuestionDoes VS resource compiler support PNG file Pin
Cold_Fearing_Bird28-May-11 3:36
Cold_Fearing_Bird28-May-11 3:36 
AnswerRe: Does VS resource compiler support PNG file Pin
Alain Rist28-May-11 4:36
Alain Rist28-May-11 4:36 
QuestionPointers to member functions which return pointers to themselves Pin
Ray Hagstrom27-May-11 12:08
Ray Hagstrom27-May-11 12:08 
QuestionRe: Pointers to member functions which return pointers to themselves Pin
CPallini28-May-11 4:01
mveCPallini28-May-11 4:01 
AnswerRe: Pointers to member functions which return pointers to themselves Pin
Ray Hagstrom31-May-11 13:40
Ray Hagstrom31-May-11 13:40 
GeneralRe: Pointers to member functions which return pointers to themselves Pin
CPallini31-May-11 22:08
mveCPallini31-May-11 22:08 
AnswerRe: Pointers to member functions which return pointers to themselves Pin
Stefan_Lang30-May-11 5:50
Stefan_Lang30-May-11 5:50 
GeneralRe: Pointers to member functions which return pointers to themselves Pin
Ray Hagstrom31-May-11 13:46
Ray Hagstrom31-May-11 13:46 
GeneralRe: Pointers to member functions which return pointers to themselves Pin
Stefan_Lang31-May-11 22:15
Stefan_Lang31-May-11 22:15 
AnswerRe: Pointers to member functions which return pointers to themselves Pin
saephoed8-Jan-14 12:22
saephoed8-Jan-14 12:22 
QuestionAlphaBlend doesn't work properly Pin
Cold_Fearing_Bird27-May-11 10:06
Cold_Fearing_Bird27-May-11 10:06 
QuestionRe: AlphaBlend doesn't work properly Pin
Mark Salsbery27-May-11 16:17
Mark Salsbery27-May-11 16:17 

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.