Click here to Skip to main content
15,845,279 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SendMessage(...) MFC is not working in win 7 enterprise edition Pin
vikuseth12-Nov-12 10:39
vikuseth12-Nov-12 10:39 
GeneralRe: SendMessage(...) MFC is not working in win 7 enterprise edition Pin
Richard MacCutchan13-Nov-12 0:01
mveRichard MacCutchan13-Nov-12 0:01 
QuestionRe: SendMessage(...) MFC is not working in win 7 enterprise edition Pin
David Crow12-Nov-12 11:18
David Crow12-Nov-12 11:18 
AnswerRe: SendMessage(...) MFC is not working in win 7 enterprise edition Pin
vikuseth12-Nov-12 23:07
vikuseth12-Nov-12 23:07 
AnswerRe: SendMessage(...) MFC is not working in win 7 enterprise edition Pin
vikuseth14-Nov-12 2:04
vikuseth14-Nov-12 2:04 
QuestionDoes this way to clear all item from std::map have problem? Pin
yu-jian11-Nov-12 2:47
yu-jian11-Nov-12 2:47 
AnswerRe: Does this way to clear all item from std::map have problem? Pin
Richard MacCutchan11-Nov-12 7:18
mveRichard MacCutchan11-Nov-12 7:18 
GeneralRe: Does this way to clear all item from std::map have problem? Pin
yu-jian11-Nov-12 20:50
yu-jian11-Nov-12 20:50 
Hi,

Thank you for your replay, after see this article, I find that I am right.
Thankyou a lot.

C++
#include "stdafx.h"

#include <list>
#include <iostream>

int main( ) 
{
	using namespace std;
	list <int> c1;
	list <int>::iterator Iter;

	c1.push_back( 10 );
	c1.push_back( 20 );
	c1.push_back( 30 );
	c1.push_back( 40 );
	c1.push_back( 50 );
	cout << "The initial list is:";
	for ( Iter = c1.begin( ); Iter != c1.end( ); Iter++ )
		cout << " " << *Iter;
	cout << endl;

	std::list<int>::iterator iter;
	std::list<int>::iterator iter2Delete;
	for(iter = c1.begin(); iter != c1.end();)
	{
		iter2Delete = iter++;
		c1.erase(iter2Delete);
	}

	for (Iter = c1.begin( ); Iter != c1.end( ); Iter++ )
		cout << " " << *Iter;
	cout << endl;
}

GeneralRe: Does this way to clear all item from std::map have problem? Pin
Richard MacCutchan11-Nov-12 22:35
mveRichard MacCutchan11-Nov-12 22:35 
GeneralRe: Does this way to clear all item from std::map have problem? Pin
Stephen Hewitt12-Nov-12 2:43
Stephen Hewitt12-Nov-12 2:43 
GeneralRe: Does this way to clear all item from std::map have problem? Pin
yu-jian12-Nov-12 4:06
yu-jian12-Nov-12 4:06 
QuestionGetting pasted test Pin
Hadi Dayvary10-Nov-12 5:20
professionalHadi Dayvary10-Nov-12 5:20 
AnswerRe: Getting pasted test Pin
Richard MacCutchan10-Nov-12 7:05
mveRichard MacCutchan10-Nov-12 7:05 
GeneralRe: Getting pasted test Pin
Hadi Dayvary10-Nov-12 21:29
professionalHadi Dayvary10-Nov-12 21:29 
GeneralRe: Getting pasted test Pin
Richard MacCutchan10-Nov-12 22:27
mveRichard MacCutchan10-Nov-12 22:27 
Questionhow can get a disk number of a logical drive? Pin
Le@rner9-Nov-12 20:42
Le@rner9-Nov-12 20:42 
AnswerRe: how can get a disk number of a logical drive? Pin
Richard MacCutchan10-Nov-12 0:28
mveRichard MacCutchan10-Nov-12 0:28 
GeneralRe: how can get a disk number of a logical drive? Pin
Le@rner10-Nov-12 1:05
Le@rner10-Nov-12 1:05 
GeneralRe: how can get a disk number of a logical drive? Pin
Richard MacCutchan10-Nov-12 1:11
mveRichard MacCutchan10-Nov-12 1:11 
AnswerRe: how can get a disk number of a logical drive? Pin
André Kraak10-Nov-12 1:18
André Kraak10-Nov-12 1:18 
QuestionInfix to Postfix Converter Pin
ShayanTanwir9-Nov-12 18:52
ShayanTanwir9-Nov-12 18:52 
AnswerRe: Infix to Postfix Converter Pin
Richard MacCutchan10-Nov-12 0:27
mveRichard MacCutchan10-Nov-12 0:27 
AnswerRe: Infix to Postfix Converter Pin
David Crow11-Nov-12 16:59
David Crow11-Nov-12 16:59 
QuestionHow to stop typing in CDateTimeCtrl in MFC Pin
rahul.kulshreshtha7-Nov-12 17:47
rahul.kulshreshtha7-Nov-12 17:47 
AnswerRe: How to stop typing in CDateTimeCtrl in MFC Pin
Jochen Arndt8-Nov-12 0:32
professionalJochen Arndt8-Nov-12 0:32 

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.