Archive

Archive for the ‘c++’ Category

How to calculate the closest point to a segment

June 6th, 2010 No comments

Hi, below there is a little snippet that calculates the closest point to a segment. It is written in C++ but could be easily translated to any other language. Disclaimer: given its age, it use hungarian notation, and some names are in spanish, but it was deeply tested and works ok. ;)
Read more…

Making a simple html editor in C++ Builder

June 6th, 2010 2 comments

Back in time, I had to make a simple html editor. It was very easy, by using a simple TCppWebBrowser (wb) and the IHTMLDocument2 interface. You will also need a TMemo (memo1) control. Here is the source code, hope it helps someone :)
Read more…