Click here to Skip to main content
16,005,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: combobox in toolbar question HELP!!! Pin
HENDRIK R24-Jan-03 4:53
HENDRIK R24-Jan-03 4:53 
GeneralRe: combobox in toolbar question HELP!!! Pin
ns24-Jan-03 5:04
ns24-Jan-03 5:04 
Generalmap .clear() question Pin
ns24-Jan-03 3:50
ns24-Jan-03 3:50 
GeneralRe: map .clear() question Pin
ns24-Jan-03 4:02
ns24-Jan-03 4:02 
GeneralRe: map .clear() question Pin
benjymous24-Jan-03 4:12
benjymous24-Jan-03 4:12 
GeneralRe: map .clear() question Pin
ns24-Jan-03 4:27
ns24-Jan-03 4:27 
GeneralRe: map .clear() question Pin
jhwurmbach24-Jan-03 4:41
jhwurmbach24-Jan-03 4:41 
GeneralRe: map .clear() question Pin
ns24-Jan-03 5:09
ns24-Jan-03 5:09 
I guess its the pointer...but what can I do?

In a view class where I generate the map:


unsigned int size = pDoc->dynaMenuMap.size();


with unsigned, I still get a non zero number --- large positive!!! Theres been no map created so far!!! So it should be zero!


But in the doc class whose member the map is:


BOOL CBKDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	CString abc;

	abc.Format(" size of map in doc is %d", dynaMenuMap.size());
	AfxMessageBox(abc);

	return TRUE;
}
retiurns size of zero!!! As it should...

Appreciate your help,
ns
GeneralRe: map .clear() question Pin
Joaquín M López Muñoz24-Jan-03 5:03
Joaquín M López Muñoz24-Jan-03 5:03 
GeneralRe: map .clear() question Pin
Tim Smith24-Jan-03 5:04
Tim Smith24-Jan-03 5:04 
GeneralRe: map .clear() question Pin
Joaquín M López Muñoz24-Jan-03 5:20
Joaquín M López Muñoz24-Jan-03 5:20 
GeneralRe: map .clear() question Pin
Tim Smith24-Jan-03 9:05
Tim Smith24-Jan-03 9:05 
GeneralRe: map .clear() question Pin
Joaquín M López Muñoz24-Jan-03 9:34
Joaquín M López Muñoz24-Jan-03 9:34 
Generalthank you..... Pin
ns24-Jan-03 5:22
ns24-Jan-03 5:22 
GeneralRe: map .clear() question Pin
Rage24-Jan-03 5:09
professionalRage24-Jan-03 5:09 
GeneralRe: map .clear() question Pin
Chris Richardson26-Jan-03 22:19
Chris Richardson26-Jan-03 22:19 
GeneralRe: map .clear() question Pin
ns27-Jan-03 4:50
ns27-Jan-03 4:50 
GeneralWindow Socket & Thread Pin
TPN24-Jan-03 3:44
TPN24-Jan-03 3:44 
GeneralRe: Window Socket & Thread Pin
valikac24-Jan-03 6:03
valikac24-Jan-03 6:03 
GeneralRe: Window Socket & Thread Pin
#realJSOP24-Jan-03 7:03
professional#realJSOP24-Jan-03 7:03 
GeneralRe: Window Socket & Thread Pin
TPN24-Jan-03 16:00
TPN24-Jan-03 16:00 
GeneralRe: Window Socket & Thread Pin
JohnnyG26-Jan-03 16:56
JohnnyG26-Jan-03 16:56 
QuestionWhat is the difference between const * char and const char * ? Pin
George224-Jan-03 3:29
George224-Jan-03 3:29 
AnswerRe: What is the difference between const * char and const char * ? Pin
Ben Burnett24-Jan-03 3:52
Ben Burnett24-Jan-03 3:52 
GeneralRe: What is the difference between const * char and const char * ? Pin
George224-Jan-03 16:56
George224-Jan-03 16:56 

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.