Click here to Skip to main content
14,325,916 members

C / C++ / MFC

 
AnswerRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
Jochen Arndt21-Aug-18 22:40
mveJochen Arndt21-Aug-18 22:40 
GeneralRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
sasia22521-Aug-18 22:43
membersasia22521-Aug-18 22:43 
AnswerRe: How I can make the GUI like as photoshop (dark theme) by using Visual Studio C++ ? Pin
Michael Haephrati28-Aug-18 4:27
mvpMichael Haephrati28-Aug-18 4:27 
QuestionUsing Alternate Memory Heaps Pin
Richard Andrew x6419-Aug-18 10:04
professionalRichard Andrew x6419-Aug-18 10:04 
AnswerRe: Using Alternate Memory Heaps Pin
Richard MacCutchan19-Aug-18 21:24
protectorRichard MacCutchan19-Aug-18 21:24 
AnswerRe: Using Alternate Memory Heaps Pin
Daniel Pfeffer21-Aug-18 5:46
professionalDaniel Pfeffer21-Aug-18 5:46 
GeneralRe: Using Alternate Memory Heaps Pin
Richard Andrew x6421-Aug-18 12:08
professionalRichard Andrew x6421-Aug-18 12:08 
GeneralRe: Using Alternate Memory Heaps Pin
Daniel Pfeffer21-Aug-18 20:21
professionalDaniel Pfeffer21-Aug-18 20:21 
No. When constructing an object using new (e.g. Foo* p = new Foo()), the compiler chooses the new operator to be called as follows:
  1. A class-specific operator new() (if present)
  2. The global operator new
It is the same for the delete operator. You may also replace the global new and delete operators with your own code:
// place outside any namespace!

void* operator new(size_t blockSize)
{
    // allocate 'blockSize' and return it, or throw std::bad_alloc (defined in <new>)
}

void operator delete(void* p)
{
    // release 'p'. Note that p == nullptr is allowed!
}
Note that operators new and delete deal only with memory allocation/release. The compiler still calls the class' constructor to turn the raw memory into a class instance, and the destructor in order to turn a class instance back into raw memory.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.

GeneralRe: Using Alternate Memory Heaps Pin
Richard Andrew x6422-Aug-18 0:39
professionalRichard Andrew x6422-Aug-18 0:39 
QuestionIterating over an indefinitely large number of concentric loops Pin
Anthony Appleyard16-Aug-18 1:54
memberAnthony Appleyard16-Aug-18 1:54 
AnswerRe: Iterating over an indefinitely large number of concentric loops Pin
Richard MacCutchan16-Aug-18 23:17
protectorRichard MacCutchan16-Aug-18 23:17 
QuestionHow to get Visual C++ (2015 version) to work in "char = 8 bits" mode? Pin
Anthony Appleyard15-Aug-18 1:18
memberAnthony Appleyard15-Aug-18 1:18 
AnswerRe: How to get Visual C++ (2015 version) to work in "char = 8 bits" mode? Pin
Randor 15-Aug-18 2:05
professional Randor 15-Aug-18 2:05 
GeneralRe: How to get Visual C++ (2015 version) to work in "char = 8 bits" mode? Pin
Anthony Appleyard15-Aug-18 2:49
memberAnthony Appleyard15-Aug-18 2:49 
SuggestionRe: How to get Visual C++ (2015 version) to work in "char = 8 bits" mode? Pin
Randor 15-Aug-18 3:05
professional Randor 15-Aug-18 3:05 
GeneralRe: How to get Visual C++ (2015 version) to work in "char = 8 bits" mode? Pin
Richard MacCutchan15-Aug-18 5:18
protectorRichard MacCutchan15-Aug-18 5:18 
GeneralRe: How to get Visual C++ (2015 version) to work in "char = 8 bits" mode? Pin
Anthony Appleyard15-Aug-18 5:54
memberAnthony Appleyard15-Aug-18 5:54 
JokeRe: How to get Visual C++ (2015 version) to work in "char = 8 bits" mode? Pin
Randor 15-Aug-18 6:21
professional Randor 15-Aug-18 6:21 
GeneralRe: How to get Visual C++ (2015 version) to work in "char = 8 bits" mode? Pin
Richard MacCutchan15-Aug-18 6:41
protectorRichard MacCutchan15-Aug-18 6:41 
GeneralRe: How to get Visual C++ (2015 version) to work in "char = 8 bits" mode? Pin
Richard MacCutchan15-Aug-18 6:40
protectorRichard MacCutchan15-Aug-18 6:40 
QuestionC++ Vector object question Pin
focusdoit14-Aug-18 15:12
memberfocusdoit14-Aug-18 15:12 
AnswerRe: C++ Vector object question Pin
Richard MacCutchan14-Aug-18 20:41
protectorRichard MacCutchan14-Aug-18 20:41 
AnswerRe: C++ Vector object question Pin
markkuk14-Aug-18 23:51
membermarkkuk14-Aug-18 23:51 
GeneralRe: C++ Vector object question Pin
samzcs15-Aug-18 2:28
membersamzcs15-Aug-18 2:28 
GeneralRe: C++ Vector object question Pin
Richard MacCutchan15-Aug-18 2:38
protectorRichard MacCutchan15-Aug-18 2:38 

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.