Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCBitmap::CreateCompatibleBitmap() fail Pin
_Flaviu13-May-13 2:44
_Flaviu13-May-13 2:44 
SuggestionRe: CBitmap::CreateCompatibleBitmap() fail Pin
Jochen Arndt13-May-13 3:05
professionalJochen Arndt13-May-13 3:05 
GeneralRe: CBitmap::CreateCompatibleBitmap() fail Pin
_Flaviu15-May-13 19:59
_Flaviu15-May-13 19:59 
GeneralRe: CBitmap::CreateCompatibleBitmap() fail Pin
Jochen Arndt15-May-13 20:46
professionalJochen Arndt15-May-13 20:46 
Questionchar ** initialization and store values Pin
tagopi13-May-13 2:42
tagopi13-May-13 2:42 
AnswerRe: char ** initialization and store values Pin
Jochen Arndt13-May-13 2:58
professionalJochen Arndt13-May-13 2:58 
AnswerRe: char ** initialization and store values Pin
Erudite_Eric14-May-13 11:18
Erudite_Eric14-May-13 11:18 
AnswerRe: char ** initialization and store values Pin
«_Superman_»14-May-13 16:58
professional«_Superman_»14-May-13 16:58 
In the first case, the pointers are pointing to memory maintained by the CStringArray class.
It is likely that CStringArray relocated, resized or moved the memory around.
So you need to allocate memory for each pointer and copy the contents to the allocated memory.

In the second case you have pointers to fixed locations that do not change.
«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++) (October 2009 - September 2013)

Polymorphism in C

GeneralRe: char ** initialization and store values Pin
Erudite_Eric15-May-13 0:47
Erudite_Eric15-May-13 0:47 
QuestionHow to change the string of a MFC Menu item that contains '\t' Pin
haha_c12-May-13 21:40
haha_c12-May-13 21:40 
SuggestionRe: How to change the string of a MFC Menu item that contains '\t' Pin
Richard MacCutchan12-May-13 23:02
mveRichard MacCutchan12-May-13 23:02 
AnswerRe: How to change the string of a MFC Menu item that contains '\t' Pin
Jochen Arndt12-May-13 23:40
professionalJochen Arndt12-May-13 23:40 
GeneralRe: How to change the string of a MFC Menu item that contains '\t' Pin
haha_c13-May-13 16:04
haha_c13-May-13 16:04 
GeneralRe: How to change the string of a MFC Menu item that contains '\t' Pin
Jochen Arndt13-May-13 20:57
professionalJochen Arndt13-May-13 20:57 
QuestionCdialog::Create Never comes back Pin
ForNow12-May-13 18:04
ForNow12-May-13 18:04 
AnswerRe: Cdialog::Create Never comes back Pin
Richard MacCutchan12-May-13 21:07
mveRichard MacCutchan12-May-13 21:07 
Questionwhat is the difference between "static" function and "inline" function? [SOLVED] Pin
yu-jian12-May-13 16:53
yu-jian12-May-13 16:53 
AnswerRe: what is the difference between "static" function and "inline" function? Pin
SoMad12-May-13 18:29
professionalSoMad12-May-13 18:29 
GeneralRe: what is the difference between "static" function and "inline" function? Pin
yu-jian14-May-13 4:13
yu-jian14-May-13 4:13 
AnswerRe: what is the difference between "static" function and "inline" function? Pin
pasztorpisti12-May-13 21:58
pasztorpisti12-May-13 21:58 
QuestionCHtmlEditCtrl - Overriding printer dialog and use with modeless dialogs Pin
Member 822518012-May-13 4:31
Member 822518012-May-13 4:31 
QuestionHow to set up a computer for network programming on UNIX [SOLVED] Pin
noislude11-May-13 13:44
noislude11-May-13 13:44 
AnswerRe: How to set up a computer for network programming on UNIX Pin
Richard MacCutchan11-May-13 21:24
mveRichard MacCutchan11-May-13 21:24 
GeneralRe: How to set up a computer for network programming on UNIX Pin
noislude12-May-13 3:43
noislude12-May-13 3:43 
GeneralRe: How to set up a computer for network programming on UNIX Pin
Richard MacCutchan12-May-13 3:58
mveRichard MacCutchan12-May-13 3:58 

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.