Click here to Skip to main content
15,907,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Error in Visual 2012 Running an MFC apps Pin
Jochen Arndt11-Jun-14 0:50
professionalJochen Arndt11-Jun-14 0:50 
GeneralRe: Error in Visual 2012 Running an MFC apps Pin
Member 1044615712-Jun-14 10:37
Member 1044615712-Jun-14 10:37 
QuestionConversion of JSON to XML using C++ (need for MFC application) Pin
sma123#10-Jun-14 21:19
sma123#10-Jun-14 21:19 
AnswerRe: Conversion of JSON to XML using C++ (need for MFC application) Pin
Richard MacCutchan10-Jun-14 21:36
mveRichard MacCutchan10-Jun-14 21:36 
GeneralRe: Conversion of JSON to XML using C++ (need for MFC application) Pin
sma123#10-Jun-14 22:05
sma123#10-Jun-14 22:05 
GeneralRe: Conversion of JSON to XML using C++ (need for MFC application) Pin
CPallini10-Jun-14 23:11
mveCPallini10-Jun-14 23:11 
AnswerRe: Conversion of JSON to XML using C++ (need for MFC application) Pin
CPallini10-Jun-14 21:58
mveCPallini10-Jun-14 21:58 
QuestionGame Programming Book Uses C and Asm How do I build these programs Pin
Member 1087548110-Jun-14 2:48
Member 1087548110-Jun-14 2:48 
AnswerRe: Game Programming Book Uses C and Asm How do I build these programs Pin
Maximilien10-Jun-14 3:33
Maximilien10-Jun-14 3:33 
AnswerRe: Game Programming Book Uses C and Asm How do I build these programs Pin
Richard MacCutchan10-Jun-14 4:40
mveRichard MacCutchan10-Jun-14 4:40 
GeneralRe: Game Programming Book Uses C and Asm How do I build these programs Pin
Member 1087548110-Jun-14 5:55
Member 1087548110-Jun-14 5:55 
GeneralRe: Game Programming Book Uses C and Asm How do I build these programs Pin
Richard MacCutchan10-Jun-14 6:00
mveRichard MacCutchan10-Jun-14 6:00 
QuestionLoading different Property Pages in a Property Sheet in Wizard Mode Pin
P V Sankaran9-Jun-14 22:45
P V Sankaran9-Jun-14 22:45 
SuggestionRe: Loading different Property Pages in a Property Sheet in Wizard Mode Pin
David Crow10-Jun-14 3:14
David Crow10-Jun-14 3:14 
QuestionCode Coverage tool for a maintenance project Pin
aks.8-Jun-14 23:58
aks.8-Jun-14 23:58 
QuestionPointers, Functions and XCode messages Pin
ericgahn8-Jun-14 8:07
ericgahn8-Jun-14 8:07 
AnswerRe: Pointers, Functions and XCode messages Pin
jschell8-Jun-14 9:12
jschell8-Jun-14 9:12 
ericgahn wrote:
Sphere s;


That line of code is creating the instance on the stack. The stack is only valid within the method and there is no assurance that it will continue to be valid.

You need to allocate it on the heap - look at the malloc method and associated other methods.

And remember to delete it when you are done with it.
GeneralRe: Pointers, Functions and XCode messages Pin
ericgahn8-Jun-14 10:01
ericgahn8-Jun-14 10:01 
AnswerRe: Pointers, Functions and XCode messages Pin
CPallini8-Jun-14 10:00
mveCPallini8-Jun-14 10:00 
GeneralRe: Pointers, Functions and XCode messages Pin
ericgahn8-Jun-14 10:05
ericgahn8-Jun-14 10:05 
GeneralRe: Pointers, Functions and XCode messages Pin
CPallini8-Jun-14 10:11
mveCPallini8-Jun-14 10:11 
Questionhow can use a non-static class member function as the custom deleter of std::unique_ptr? Pin
Falconapollo7-Jun-14 21:18
Falconapollo7-Jun-14 21:18 
AnswerRe: how can use a non-static class member function as the custom deleter of std::unique_ptr? Pin
jschell8-Jun-14 9:17
jschell8-Jun-14 9:17 
Questionpointer to a constant string Pin
bkelly137-Jun-14 12:51
bkelly137-Jun-14 12:51 
AnswerRe: pointer to a constant string Pin
«_Superman_»7-Jun-14 21:59
professional«_Superman_»7-Jun-14 21: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.