Updated C++/CLI sample