Don't have Telegram yet? Try it now!
https://vishnugopal.com/2004/04/09/dll-creation-with-mingw/
DLL Creation with Mingw