S
Servé Lau
I'm still seeing lots of code like this (taken from the MS directX samples:
apDSBuffer = new LPDIRECTSOUNDBUFFER[dwNumBuffers];
if( apDSBuffer == NULL ) {
hr = E_OUTOFMEMORY;
goto LFail;
}
I thought new throws an exception nowadays?
Am I correct?
apDSBuffer = new LPDIRECTSOUNDBUFFER[dwNumBuffers];
if( apDSBuffer == NULL ) {
hr = E_OUTOFMEMORY;
goto LFail;
}
I thought new throws an exception nowadays?
Am I correct?