Well since I entered the competition 2 days late, tonights efforts (or last nights, since it’s the early hours of the morning now!) are the end of day two in the Darwin Race of Languages competition.

As I have already said in my last post, the competition requires developers to keep a log of their development, and so I am using my blog to do this… here goes…

So, end of day 2. I took some time to research methods of interactivity between C# and the Windows Clipboard and found some very useful posts, such as this one. Though the application in the aforementioned link is not exactly what I intend my application to do, it does give a good insight on how to use the user32.dll to intercept Windows messages to and from the Clipboard and use them in your own application.

I managed to put that to use, and have started creating a class ClipboardManager that will handle the collection of data that is copied to the clipboard and store that data in a DataTable for future use.

Once I had come up with a rough sketch, if you like, for this class I started implementing some temporary functionality to come up with a quick and dirty prototype. Here is how it looks (Click for full image):

Clipboard Manager

So that’s it for tonight (or, again, yesterday!). I will post again tomorrow night!

Add This!