Re: Explicitly calling the constructor
- From: Roland Frank <roland.frank.no-spam@xxxxxxxx>
- Date: Wed, 29 Jun 2005 10:57:56 +0200
Hi Antii,
CTestClass* pData = (CTestClass*) malloc( sizeof(CTestClass) );
What is wrong with:
CTestClass *pData = new CTestClass;
????? And if you are in doubt about enough memory for your class you can always try/catch.
Regards Roland .
- References:
- Explicitly calling the constructor
- From: Antti Keskinen
- Explicitly calling the constructor
- Prev by Date: Re: Explicitly calling the constructor
- Next by Date: Re: Reposted,simplified - Microsoft Visual C++ 6.0 compiler vs Borland C++ Builder 5 compiler speed optimization.
- Previous by thread: Re: Explicitly calling the constructor
- Next by thread: Re: Explicitly calling the constructor
- Index(es):