Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating/Adding Tabs to a Tab Control Pin
Carlos Antollini28-Jan-04 8:25
Carlos Antollini28-Jan-04 8:25 
GeneralRe: Creating/Adding Tabs to a Tab Control Pin
monrobot1328-Jan-04 12:02
monrobot1328-Jan-04 12:02 
GeneralCopy Constructors Pin
BrockVnm28-Jan-04 6:46
BrockVnm28-Jan-04 6:46 
GeneralRe: Copy Constructors Pin
peterchen28-Jan-04 7:13
peterchen28-Jan-04 7:13 
GeneralRe: Copy Constructors Pin
BrockVnm28-Jan-04 7:18
BrockVnm28-Jan-04 7:18 
GeneralRe: Copy Constructors Pin
peterchen28-Jan-04 7:42
peterchen28-Jan-04 7:42 
GeneralRe: Copy Constructors Pin
TFrancis28-Jan-04 7:43
TFrancis28-Jan-04 7:43 
GeneralRe: Copy Constructors Pin
Nitron28-Jan-04 7:16
Nitron28-Jan-04 7:16 
A copy ctor is used to instantiate an object of a class with a copy of another object of that same class. i.e. If I wanted a CPoint that had the same values as another CPoint (say, one I wouldn't want to modify), then I would do the following:

foo(const CPoint& pt)
{
  CPoint MyPoint(pt);
  ...
}

Thus you need to implement a ctor with the following prototype:

CMyClass(const CMyClass&)

And then set all the necessary class internals needed to represent a copy.

~Nitron.
ññòòïðïðB A
start

Generalstatistical mode Pin
act_x28-Jan-04 6:17
act_x28-Jan-04 6:17 
GeneralRe: statistical mode Pin
David Crow28-Jan-04 10:46
David Crow28-Jan-04 10:46 
GeneralRe: statistical mode Pin
act_x28-Jan-04 12:24
act_x28-Jan-04 12:24 
GeneralMFC and Windows 2000 Pin
Don Burton28-Jan-04 5:59
Don Burton28-Jan-04 5:59 
GeneralRe: MFC and Windows 2000 Pin
Anonymous29-Jan-04 5:34
Anonymous29-Jan-04 5:34 
GeneralSubclassing Problem Pin
Dennis L28-Jan-04 5:55
Dennis L28-Jan-04 5:55 
GeneralNot receiving Registered Broadcast Message Pin
Member 81460328-Jan-04 5:49
Member 81460328-Jan-04 5:49 
GeneralRe: Not receiving Registered Broadcast Message Pin
Diddy28-Jan-04 11:15
Diddy28-Jan-04 11:15 
GeneralRe: Not receiving Registered Broadcast Message Pin
Member 81460329-Jan-04 2:08
Member 81460329-Jan-04 2:08 
GeneralTCHAR buffer size Pin
TomD228-Jan-04 5:48
TomD228-Jan-04 5:48 
GeneralRe: TCHAR buffer size Pin
Michael P Butler28-Jan-04 5:51
Michael P Butler28-Jan-04 5:51 
GeneralRe: TCHAR buffer size Pin
TomD228-Jan-04 6:05
TomD228-Jan-04 6:05 
GeneralRe: TCHAR buffer size Pin
Michael P Butler28-Jan-04 6:17
Michael P Butler28-Jan-04 6:17 
GeneralRe: TCHAR buffer size Pin
TomD228-Jan-04 6:35
TomD228-Jan-04 6:35 
GeneralRe: TCHAR buffer size Pin
Anonymous28-Jan-04 7:53
Anonymous28-Jan-04 7:53 
GeneralRe: TCHAR buffer size Pin
TomD228-Jan-04 21:21
TomD228-Jan-04 21:21 
GeneralButtons with alternative message Pin
satcat28-Jan-04 5:45
satcat28-Jan-04 5:45 

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.