Re: Some compatibility issues using STL.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Arnie" <NoOne@xxxxxxxx> a écrit dans le message de news: %

What's wrong with:

char buf[MAX_PATH];

Then there's no memory allocation.

There is nothing wrong per-se with stack allocation, but it makes your code
more susceptible to be a security hole in case of buffer overrun..

Arnaud
MVP - VC


.