Click here to Skip to main content
15,918,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: trapping keyboard message Pin
imsniper11-Apr-03 0:19
imsniper11-Apr-03 0:19 
QuestionHow to determine if an .EXE is running? Pin
TWilliams10-Apr-03 5:11
TWilliams10-Apr-03 5:11 
AnswerRe: How to determine if an .EXE is running? Pin
MarkyMark10-Apr-03 5:21
MarkyMark10-Apr-03 5:21 
AnswerRe: How to determine if an .EXE is running? Pin
valikac10-Apr-03 7:46
valikac10-Apr-03 7:46 
GeneralRe: How to determine if an .EXE is running? Pin
TWilliams10-Apr-03 8:28
TWilliams10-Apr-03 8:28 
GeneralRe: How to determine if an .EXE is running? Pin
Joe Woodbury10-Apr-03 8:59
professionalJoe Woodbury10-Apr-03 8:59 
GeneralRe: How to determine if an .EXE is running? Pin
IceMatrix11-Apr-03 6:53
IceMatrix11-Apr-03 6:53 
GeneralSTL deque question Pin
pankajdaga10-Apr-03 5:04
pankajdaga10-Apr-03 5:04 
Hello all,

I thought when I call erase() method on an STL deque, it is supposed to call the corresponding destructor of the object. However, it does not when I do this. Here is some code to illustrate the problem.

std::deque<wave *=""> _wavePool;
std::deque<wave *="">::iterator it;

Wave *wav1 = new Wave("D:\\waves\\v1.wav", true);
Wave *wav2 = new Wave("D:\\waves\\think.wav", true);
_wavePool.push_back(wav1);
_wavePool.push_back(wav2);
it = _wavePool.begin()

Now, if I call...

_wavePool.erase(it);

The wave destructor never gets called. Am I not supposed to put heap pointers in a queue or do I have to do this manually.

Thanks for any help you might give me.

Pankaj

Without struggle, there is no progress
GeneralRe: STL deque question Pin
Erik Juhl10-Apr-03 5:15
Erik Juhl10-Apr-03 5:15 
GeneralRe: STL deque question Pin
John M. Drescher10-Apr-03 5:29
John M. Drescher10-Apr-03 5:29 
GeneralRe: STL deque question Pin
Zdeslav Vojkovic10-Apr-03 5:27
Zdeslav Vojkovic10-Apr-03 5:27 
GeneralRe: STL deque question Pin
Alvaro Mendez10-Apr-03 5:53
Alvaro Mendez10-Apr-03 5:53 
GeneralSetWindowLong() Pin
ZarrinPour10-Apr-03 5:01
ZarrinPour10-Apr-03 5:01 
GeneralRe: SetWindowLong() Pin
Alvaro Mendez10-Apr-03 6:03
Alvaro Mendez10-Apr-03 6:03 
GeneralSpinCtrl Pin
act_x10-Apr-03 4:51
act_x10-Apr-03 4:51 
GeneralRe: SpinCtrl Pin
PJ Arends10-Apr-03 9:27
professionalPJ Arends10-Apr-03 9:27 
GeneralRe: SpinCtrl Pin
Heiko200310-Apr-03 10:42
sussHeiko200310-Apr-03 10:42 
GeneralProblem with WorkQueue Pin
Martin_Viet10-Apr-03 4:46
Martin_Viet10-Apr-03 4:46 
GeneralGetting Systeminformations Pin
Sendel10-Apr-03 4:46
Sendel10-Apr-03 4:46 
GeneralRe: Getting Systeminformations Pin
MarkyMark10-Apr-03 5:24
MarkyMark10-Apr-03 5:24 
GeneralRe: Getting Systeminformations Pin
Sendel10-Apr-03 7:08
Sendel10-Apr-03 7:08 
GeneralRe: Getting Systeminformations Pin
Dominik Reichl10-Apr-03 9:16
Dominik Reichl10-Apr-03 9:16 
GeneralRe: Getting Systeminformations Pin
Sendel10-Apr-03 10:19
Sendel10-Apr-03 10:19 
GeneralCDao problem with 'create' Pin
naradaji10-Apr-03 4:00
naradaji10-Apr-03 4:00 
GeneralRe: CDao problem with 'create' Pin
Carlos Antollini10-Apr-03 4:05
Carlos Antollini10-Apr-03 4:05 

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.