Dynamically, do you mean stack resizing during code execution? AFAIK, this is not possible. But you can set the stack size before running the application. You can do this using the "ulimit -s" command on linux, which will set the stack size for the entire process running in this shell.
, VC6 , Project Properties- > link options- > output- > stack allocations- > reserve. , VC8, .