Subj : Re: I am using Borland C++4.52 and having a linking issus To : borland.public.cpp.borlandcpp From : James Kim Date : Tue Jul 29 2003 03:53 pm Thanks for your advice. But as you know, that's not the point! Bruce Salzman wrote: > > void main( ) > > { > > Number* psMyNumber; > > psMyNumber = new Number( ); > > > > psMyNumber->PrintValue(5); > > } > > When you 'new' an object, the contructor is invoked automatically. > Try this instead: > > psMyNumber = new Number; > > Even though this is just a test program, it is still good practice to match > any 'new' calls with 'delete' calls. > > Regards, > Bruce .