Click here to Skip to main content
15,917,320 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to show my window derived from CWnd Pin
gucy19-Jun-03 23:11
gucy19-Jun-03 23:11 
GeneralRe: how to show my window derived from CWnd Pin
Hans Ruck19-Jun-03 23:19
Hans Ruck19-Jun-03 23:19 
GeneralRe: how to show my window derived from CWnd Pin
gucy19-Jun-03 23:33
gucy19-Jun-03 23:33 
GeneralRe: how to show my window derived from CWnd Pin
Hans Ruck19-Jun-03 23:36
Hans Ruck19-Jun-03 23:36 
GeneralRe: how to show my window derived from CWnd Pin
gucy20-Jun-03 1:03
gucy20-Jun-03 1:03 
GeneralRe: how to show my window derived from CWnd Pin
Hans Ruck20-Jun-03 1:31
Hans Ruck20-Jun-03 1:31 
GeneralCArray inside CMap Pin
Eugene Pustovoyt19-Jun-03 21:25
Eugene Pustovoyt19-Jun-03 21:25 
GeneralRe: CArray inside CMap Pin
Ryan Binns19-Jun-03 22:58
Ryan Binns19-Jun-03 22:58 
The simple answer is you can't, not directly. CArray does not have a copy constructor or assignment operator, so it won't work. There are a couple of workarounds however.

1. Make a class that has the array as a member, and define copy constructors and assignment operators that copy the array elements.

2. Derive a class from CArray and implement the copy constructor and assignment operator, and use this class with the map.

I would choose the second option - it is still a CArray, rather than having to go through another class.

Hope this helps,

Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

GeneralRe: CArray inside CMap Pin
Eugene Pustovoyt19-Jun-03 23:41
Eugene Pustovoyt19-Jun-03 23:41 
GeneralRe: CArray inside CMap Pin
Ryan Binns19-Jun-03 23:44
Ryan Binns19-Jun-03 23:44 
GeneralRe: CArray inside CMap Pin
basementman20-Jun-03 4:35
basementman20-Jun-03 4:35 
GeneralRe: CArray inside CMap Pin
Ryan Binns20-Jun-03 4:42
Ryan Binns20-Jun-03 4:42 
GeneralGetting IP and Language Pin
xxhimanshu19-Jun-03 19:59
xxhimanshu19-Jun-03 19:59 
GeneralRe: Getting IP and Language Pin
Will Beattie19-Jun-03 23:48
Will Beattie19-Jun-03 23:48 
GeneralRe: Getting IP and Language Pin
xxhimanshu20-Jun-03 0:23
xxhimanshu20-Jun-03 0:23 
GeneralRe: Getting IP and Language Pin
Baris Kurtlutepe20-Jun-03 3:46
Baris Kurtlutepe20-Jun-03 3:46 
GeneralRe: Getting IP and Language Pin
xxhimanshu20-Jun-03 18:25
xxhimanshu20-Jun-03 18:25 
GeneralRe: Getting IP and Language Pin
Baris Kurtlutepe20-Jun-03 22:10
Baris Kurtlutepe20-Jun-03 22:10 
GeneralRe: Getting IP and Language Pin
xxhimanshu20-Jun-03 22:27
xxhimanshu20-Jun-03 22:27 
GeneralRe: Getting IP and Language Pin
Baris Kurtlutepe20-Jun-03 23:21
Baris Kurtlutepe20-Jun-03 23:21 
GeneralUnhandled Exception Using MFC Sockets in Visual C++ 6.0 Pin
Will Beattie19-Jun-03 19:32
Will Beattie19-Jun-03 19:32 
GeneralRe: Unhandled Exception Using MFC Sockets in Visual C++ 6.0 Pin
Ryan Binns19-Jun-03 21:16
Ryan Binns19-Jun-03 21:16 
GeneralRe: Unhandled Exception Using MFC Sockets in Visual C++ 6.0 Pin
Will Beattie19-Jun-03 22:37
Will Beattie19-Jun-03 22:37 
GeneralRe: Unhandled Exception Using MFC Sockets in Visual C++ 6.0 Pin
Ryan Binns19-Jun-03 22:44
Ryan Binns19-Jun-03 22:44 
GeneralRe: Unhandled Exception Using MFC Sockets in Visual C++ 6.0 Pin
Will Beattie19-Jun-03 23:29
Will Beattie19-Jun-03 23:29 

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.