[examples/*c] Use _stprintf_s() instead of _snprintf().

This removes many MSVC warnings.
[examples/ex_expand.rc] Make static text shorter then 256 chars.

Resource compiler of MSVC has this limit and truncates when longer.