Posts

Showing posts with the label samples

C#: Enumerating Windows Using Interop

At last I decided (and willing:)) to get a better understanding of the technologies I use. And to better understand, you know, you should practicing, right? So here is my first tiny sample written it 10 mins. It enumerates all the windows on your desktop. Just out of coriosity. Sample shows just the small part of C# interop: which "using" to define, what it looks like (a bit ugly at my taste;)) Feel the power of interop and god bless  http://www.pinvoke.net/ ! Platform: Windows Language: C# IDE: Visual Studio 2010 Source code is freely available on GitHub: https://github.com/pgurenko/CSharpInteropSample Cheers

Console Calendar Sample

Image
Sample console calendar application which eats the mm.YYYY from the parameters and draws the calendar   for the selected month inside the console. Output is based on the current locale. Platform: Windows Language: C++ IDE: Visual Studio 2010 Source code is freely available on GitHub: https://github.com/pgurenko/ConsoleCalend Made this utility in a few hours as a test project to job interview. The hardest part here was not the actual logic of the program but what WinAPIs to use. Because I had no practice with locale APIs under Windows, most of the time I spent googling "best way to"... Just browse the code - it worth looking at.