Click here to Skip to main content
15,926,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: _execv from one console app to another Pin
Anonymous3-Jan-03 3:14
Anonymous3-Jan-03 3:14 
GeneralRe: _execv from one console app to another Pin
Joaquín M López Muñoz3-Jan-03 5:06
Joaquín M López Muñoz3-Jan-03 5:06 
Generalopen file dialog, custom template, opengl and thread.... Pin
haust3-Jan-03 2:17
haust3-Jan-03 2:17 
GeneralRe: open file dialog, custom template, opengl and thread.... Pin
AlexO3-Jan-03 2:41
AlexO3-Jan-03 2:41 
GeneralRe: open file dialog, custom template, opengl and thread.... Pin
haust3-Jan-03 5:56
haust3-Jan-03 5:56 
GeneralFormView sizes to its Initial size Pin
Arjan Schouten3-Jan-03 2:10
Arjan Schouten3-Jan-03 2:10 
GeneralPlaySound Problem Pin
Anders Molin3-Jan-03 2:03
professionalAnders Molin3-Jan-03 2:03 
Generalequalize 2 objects of 1 class! Pin
HellShrimp4free3-Jan-03 1:31
HellShrimp4free3-Jan-03 1:31 
hi i have a problem
in my project i have to take a Object of a class(Master object). and then define another object of that class (Temporary object) that holds the same contents as the master object. if i change contents of this Temporary object the master object should take no changes.

for example if i define these 2 objects as pointer (node * master; node * temp;) and then i equalize these 2 object (master=temp;) if i change temp , Master object will be changed also.

i think this is becouse of Structure of the pointers.so is there any way to define another object of this class that get the Master Contents and even i change temp contetnts the master object take no changes.

in visual C++ ver6.0 i can define this : node * master=new node; node tmp=*master;
but in visual C++ .Net even use this structure an Error Occures : Cannot convert from node to node
how can i fix this ? Confused | :confused:


thnkx and sorry for my bad english Cry | :((

class node{
public:
   int k;
   ink l;
};

void main(){
  node *master;
  node *tmp;
  tmp=master;
  tmp->k=10; //master->k also change to 10 :(
  /////////////
  node a;
  node b;
  a=b; //ERROR : no opearator found witch takes a right-hand operand of type node
} 

GeneralRe: equalize 2 objects of 1 class! Pin
Joaquín M López Muñoz3-Jan-03 2:18
Joaquín M López Muñoz3-Jan-03 2:18 
GeneralRe: equalize 2 objects of 1 class! Pin
HellShrimp4free3-Jan-03 3:28
HellShrimp4free3-Jan-03 3:28 
GeneralRe: equalize 2 objects of 1 class! Pin
Joaquín M López Muñoz3-Jan-03 3:31
Joaquín M López Muñoz3-Jan-03 3:31 
GeneralRe: equalize 2 objects of 1 class! Pin
HellShrimp4free3-Jan-03 3:53
HellShrimp4free3-Jan-03 3:53 
GeneralRe: equalize 2 objects of 1 class! Pin
Joaquín M López Muñoz3-Jan-03 3:56
Joaquín M López Muñoz3-Jan-03 3:56 
GeneralRe: equalize 2 objects of 1 class! Pin
HellShrimp4free3-Jan-03 4:45
HellShrimp4free3-Jan-03 4:45 
GeneralRe: equalize 2 objects of 1 class! Pin
s196675m14-Oct-07 16:12
s196675m14-Oct-07 16:12 
GeneralRe: equalize 2 objects of 1 class! Pin
AlexO3-Jan-03 2:57
AlexO3-Jan-03 2:57 
GeneralRe: equalize 2 objects of 1 class! Pin
HellShrimp4free3-Jan-03 4:54
HellShrimp4free3-Jan-03 4:54 
GeneralWin32 Memory Allocation Pin
Alan Chambers3-Jan-03 0:39
Alan Chambers3-Jan-03 0:39 
GeneralRe: Win32 Memory Allocation Pin
Joaquín M López Muñoz3-Jan-03 1:09
Joaquín M López Muñoz3-Jan-03 1:09 
GeneralRe: Win32 Memory Allocation Pin
Alan Chambers3-Jan-03 1:17
Alan Chambers3-Jan-03 1:17 
GeneralRe: Win32 Memory Allocation Pin
Joaquín M López Muñoz3-Jan-03 2:14
Joaquín M López Muñoz3-Jan-03 2:14 
GeneralRe: Win32 Memory Allocation Pin
Joaquín M López Muñoz3-Jan-03 2:35
Joaquín M López Muñoz3-Jan-03 2:35 
GeneralRe: Win32 Memory Allocation Pin
Alan Chambers3-Jan-03 4:18
Alan Chambers3-Jan-03 4:18 
Generali don't know about the Control Variable Pin
Joise3-Jan-03 0:30
Joise3-Jan-03 0:30 
GeneralRe: i don't know about the Control Variable Pin
Nitron3-Jan-03 5:22
Nitron3-Jan-03 5:22 

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.