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

C / C++ / MFC

 
GeneralRe: ATL CImageList Pin
Mike Dunn2-Jul-00 21:55
Mike Dunn2-Jul-00 21:55 
Question'CDateTimeCtrl' missing storage-class or type specifiers???? Pin
danielle2-Jul-00 9:48
danielle2-Jul-00 9:48 
AnswerRe: 'CDateTimeCtrl' missing storage-class or type specifiers???? Pin
Mike Dunn2-Jul-00 10:25
Mike Dunn2-Jul-00 10:25 
AnswerRe: 'CDateTimeCtrl' missing storage-class or type specifiers???? Pin
Blake Miller2-Jul-00 10:27
Blake Miller2-Jul-00 10:27 
GeneralGetting top window... Pin
Member 37471-Jul-00 11:56
Member 37471-Jul-00 11:56 
QuestionCMap restricted use? Pin
Nuno Tavares1-Jul-00 8:01
Nuno Tavares1-Jul-00 8:01 
AnswerRe: CMap restricted use? Pin
Sam Hobbs2-Jul-00 21:17
Sam Hobbs2-Jul-00 21:17 
AnswerRe: CMap restricted use? Pin
Sam Hobbs2-Jul-00 21:31
Sam Hobbs2-Jul-00 21:31 
Hey! I know I did the first reply correctly; it must have gotten messed up by this CodeProject thingee. I sure miss the CodeGuru's preview feature. I took advantage of it often.

I will do my post again and this time I will be sure to copy the password number for fixing this one.

Ok, I got the same result this time that I got the first time. The problem seems to be the brackets used as delimiters for STL. So in the code below use a less-than-symbol ("<") instead of "{" and use a greater-than-symbol (">") instead of "}". This CodeProject forum software seems to exclude text between the "angle" brackets.


So what I meant to say is that instead of:

CMap myWorld;

you probably need something like:

CMap {DWORD, DWORD, CMyObject, CMyObject&} myWorld;

Does that look like what you want?

I prefer to use typedefs, so I would do that this way:

typedef CMap {DWORD, DWORD, CMyObject, CMyObject&} CMyObjectMap;

CMyObjectMap myWorld;
GeneralRe: CMap restricted use? Pin
Nuno Tavares3-Jul-00 0:56
Nuno Tavares3-Jul-00 0:56 
GeneralRe: CMap restricted use? Pin
Blake Miller3-Jul-00 7:01
Blake Miller3-Jul-00 7:01 
GeneralRe: CMap restricted use? Pin
Sam Hobbs3-Jul-00 8:17
Sam Hobbs3-Jul-00 8:17 
GeneralRe: CMap restricted use? Pin
Nuno Tavares9-Jul-00 5:41
Nuno Tavares9-Jul-00 5:41 
GeneralCool Menu Bar Pin
Member 39871-Jul-00 7:40
Member 39871-Jul-00 7:40 
GeneralRe: Cool Menu Bar Pin
Erich2-Jul-00 9:50
Erich2-Jul-00 9:50 
GeneralPrinting Dialog Box Pin
MFCDude1-Jul-00 4:09
sussMFCDude1-Jul-00 4:09 
GeneralRe: Printing Dialog Box Pin
Jeremy Davis2-Jul-00 22:23
Jeremy Davis2-Jul-00 22:23 
GeneralDialog in ATL object Pin
Magesh K.1-Jul-00 3:30
sussMagesh K.1-Jul-00 3:30 
GeneralRe: Dialog in ATL object Pin
Mike Dunn1-Jul-00 9:18
Mike Dunn1-Jul-00 9:18 
GeneralRe: Dialog in ATL object Pin
Magesh K.2-Jul-00 2:05
sussMagesh K.2-Jul-00 2:05 
GeneralRe: Dialog in ATL object Pin
Mike Dunn2-Jul-00 9:22
Mike Dunn2-Jul-00 9:22 
GeneralKey strokes Pin
Member 37471-Jul-00 1:28
Member 37471-Jul-00 1:28 
GeneralRe: Key strokes Pin
Mike Dunn1-Jul-00 9:22
Mike Dunn1-Jul-00 9:22 
GeneralInteresting Dialog problem Pin
Member 238630-Jun-00 17:13
Member 238630-Jun-00 17:13 
GeneralRe: Interesting Dialog problem Pin
Blake Miller30-Jun-00 18:09
Blake Miller30-Jun-00 18:09 
GeneralRe: Interesting Dialog problem Pin
Member 238630-Jun-00 18:53
Member 238630-Jun-00 18:53 

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.