Displaying a downloaded icon

Let’s say that you want your Microsoft Foundation Classes (MFC) application to display an icon that it has downloaded, rather in the way that Internet Explorer displays icons on its tabs.  The first step is to download the remote icon to a local file.  Here is a function for doing that: void WebResource::Download() {        if(!(this->uniqueIdentifier))…

0

Working around a WebBrowser ActiveX control resize bug of which you may or may not have been aware

If you are hosting the WebBrowser ActiveX control in a native code application (perhaps following these instructions, then you may or may not have noticed that the control does not always resize correctly.  Specifically, if you maximize the application, then the same functions that will work properly to maximize any other child control (MoveWindow or SetWindowPos)…

0

Steve Jobs …

…  you so changed the world … thanks for making lives like mine possible.  RIP.

1

A Windows Communication Foundation JSONP Service

All of the samples I’ve found that show how to build a JSONP service using the Windows Communication Foundation have the thing hosted in IIS.  IIS is literally the last place I want my Windows Communication Foundation services hosted … especially because I’ll only want them in IIS once I’ve debugged them, and debugging outside…

0

Integrating a desktop application with Windows Live

If one searches the Web for samples of how to integrate a desktop application with Windows Live, unfortunately one finds one’s way to material that is out-of-date.  So here is some code that works as of July 2011.  The code is for a Windows Form that has a browser control and a text box.  The…

0

The Artificial Intelligence Oxymoron

I’m reading Stephen Levy’s wonderful book about Google, In the Plex.  In the account of the development of AdSense, an engineer explains the process of having software understand a Web page well enough to match its content with an advertisement.  He says that fundamentally the problem is that of enabling a machine to accept a…

0

Two IE 9 Tips

Selecting a Particular Home Page in Internet Explorer 9: I have 5 home pages that I add to Internet Explorer on every machine I use as a productivity workstation.  In version 8, I routinely go over to the drop-down arrow next to the home icon and select a particular home page.  That drop-down arrow is…

0

Re-discovering ‘1984’

I can’t listen to Goldfrapp, The Ting Tings, and The Scissor Sisters exclusively. Goldfrapp’s art, in particular, always absorbs my concentration. So I’m always on the lookout for stuff to have in the background. A few weeks ago, I had Escovedo’s wonderful ‘A Man On the Wire’ in heavy rotation. This week, I’ve rediscovered an…

0

In-Process Transport for the Windows Communication Foundation

I recently had a case where a thread running under one identity would process data periodically provided by a thread running under a different identity.  There are lots of ways of accomplishing this, but the priority for me was to do it in such a way that the purpose of all of the code would…

0

"Real-World Functional Programming" …

… is a book by Tomas Petricek and Jon Skeet.  It’s terrific.  It succeeds not just as an introduction to functional programming and F#, but also as a simply excellent programming text.  The reason it is superior is that the authors strived to teach concepts and the application of concepts, rather than simply convey the…

0