Category : C++

22 Aug

Code Snippet I : Wrapper for CLR string to native string marshalling

by Marco Mastropaolo

A frequent (too much frequent) need in Managed C++ is going from System::String objects to char* or wchar_t* strings. The boring side of the marshalling is that the memory allocated with the StringToHGlobalxxx functions should be freed with a matching call to FreeHGlobal. The solution is simple : using the power of C++ destructors we [...]

08 Jul

.NET Type Viewer

by Marco Mastropaolo

I’ve uploaded a page with a small utility I’ve written yesterday in about 2 hours to solve a problem I had with some code of mine. .NET Type Viewer is a small program using reflection to inspect .NET modules, with special power features for mixed mode DLLs. More details here.

Filed Under: .NET, C++, Programming, Uncategorized