.NET class ports in C++