> I think it's not a problem to upgrade default stack buffer to 4096 by > default. > Stack allocation is generally same speed for 256 and 4096. > And only dynamicly allocate a buffer when desired size isn't enough. > Something like that : > void > GetOpenFileName(...) > PPCODE: > ... > char filename[4096]; >
Quick question - are you saying that this 4096 is allocated only when the function is called? Or would it be allocated all the time? If it's the later, why not always dynamically allocate the memory? Does it come down to memory use VS. speed? cheers, jez.