Click here to Skip to main content
15,919,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ code to create thread to handle method Pin
Eytukan6-Sep-13 2:49
Eytukan6-Sep-13 2:49 
QuestionProblem playing (rendering) wave file using WASAPI Pin
AmbiguousName1-Sep-13 19:25
AmbiguousName1-Sep-13 19:25 
QuestionMFCPropertyGridProperty masked edit control Pin
Richard Andrew x641-Sep-13 18:02
professionalRichard Andrew x641-Sep-13 18:02 
AnswerRe: MFCPropertyGridProperty masked edit control Pin
D G McKay1-Sep-13 23:17
D G McKay1-Sep-13 23:17 
GeneralRe: MFCPropertyGridProperty masked edit control Pin
Richard Andrew x641-Sep-13 23:35
professionalRichard Andrew x641-Sep-13 23:35 
Generalabout destructor Pin
Syeda Fatimah30-Aug-13 21:40
Syeda Fatimah30-Aug-13 21:40 
GeneralRe: about destructor Pin
Richard MacCutchan30-Aug-13 21:57
mveRichard MacCutchan30-Aug-13 21:57 
GeneralRe: about destructor Pin
«_Superman_»31-Aug-13 22:58
professional«_Superman_»31-Aug-13 22:58 
GeneralRe: about destructor Pin
Ajay_Tiwari3-Sep-13 0:40
Ajay_Tiwari3-Sep-13 0:40 
GeneralRe: about destructor Pin
Erudite_Eric3-Sep-13 3:47
Erudite_Eric3-Sep-13 3:47 
GeneralRe: about destructor Pin
Ajay_Tiwari15-Sep-13 18:43
Ajay_Tiwari15-Sep-13 18:43 
GeneralRe: about destructor Pin
Erudite_Eric3-Sep-13 3:47
Erudite_Eric3-Sep-13 3:47 
QuestionUsing CDHtmlDialog Pin
Don Guy30-Aug-13 12:58
Don Guy30-Aug-13 12:58 
AnswerRe: Using CDHtmlDialog Pin
Richard MacCutchan30-Aug-13 21:56
mveRichard MacCutchan30-Aug-13 21:56 
GeneralRe: Using CDHtmlDialog Pin
SoMad30-Aug-13 22:20
professionalSoMad30-Aug-13 22:20 
GeneralRe: Using CDHtmlDialog Pin
Richard MacCutchan30-Aug-13 22:40
mveRichard MacCutchan30-Aug-13 22:40 
GeneralRe: Using CDHtmlDialog Pin
Don Guy2-Sep-13 6:25
Don Guy2-Sep-13 6:25 
GeneralRe: Using CDHtmlDialog Pin
Richard MacCutchan2-Sep-13 21:29
mveRichard MacCutchan2-Sep-13 21:29 
QuestionHow to write vector destructor? Pin
CryptoGnome329-Aug-13 15:36
CryptoGnome329-Aug-13 15:36 
I am defining a vector as a private variable of a class Grid. Class Points has only two instance vars that are all ints. Did I initialize constructor correctly and When writing a destructor for Grid do I need to write a destructor for vector like this: ~vecotr() or with delete or using iterator?

C++
class Grid{
public:
  // initialize vector with 3 points with val 0.
  Grid(vector<Points> v) : vector<Points>(3, 0) {};  // is this right


// first option
  ~Grid() {
    ~vector<Points>();  // not sure how to destroy vector<Points>;
  }

// second option
  ~Grid() {
     delete v_points;
  }

// third option
  ~Grid() {
     for (vector<Points>::iterator it = v_points.begin(),
          vector<Points>::iterator it_end = v_points.end(); it != it_end; it++)
  }

private:
  vector<Points> v_points;
};


Which option should I use and did I initialize constructor correctly?
AnswerRe: How to write vector destructor? Pin
SandipG 29-Aug-13 17:59
SandipG 29-Aug-13 17:59 
AnswerRe: How to write vector destructor? Pin
CPallini29-Aug-13 22:16
mveCPallini29-Aug-13 22:16 
AnswerRe: How to write vector destructor? Pin
Freak3029-Aug-13 22:38
Freak3029-Aug-13 22:38 
GeneralRe: How to write vector destructor? Pin
CryptoGnome330-Aug-13 5:45
CryptoGnome330-Aug-13 5:45 
GeneralRe: How to write vector destructor? Pin
Stefan_Lang2-Sep-13 0:36
Stefan_Lang2-Sep-13 0:36 
QuestionHow to pass array from MFC (dialogbased) to win 32 DLL ? Pin
peoria12329-Aug-13 6:31
peoria12329-Aug-13 6:31 

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.