Category : .NET

08 Feb

Wow! P/INVOKE made easy

by Marco Mastropaolo

While wasting tim^H^H^H^H^H^H^H^H^H ahem While reading important and interesting stuff around, I stumbled upon http://www.pinvoke.net/. It is a great site for those who want to P/INVOKE from .NET languages on native APIs. Heck, it’s so great sometimes I check it even when coding in native C++

Filed Under: .NET, Uncategorized, Win32

23 Aug

DevIL.NET 1.1 !

by Marco Mastropaolo

I’ve released DevIL.NET 1.1. It’s a small update for a small library Included in this version : Fixed a bad bug when loading non true color images (above all GIFs) Implemented a new LoadBitmapAndScale which allows for the bitmap to be scaled directly in DevIL.NET Started to implement some error handling… note: From version 1.1, [...]

Filed Under: .NET, Programming, Uncategorized

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 [...]