Category

Computers & Programming

AutoResponder

IMAP is Easy

The IMAP protocol, like SMTP and POP3, is a text based protocol. This kind of protocol can be processed by hand using a telnet client or other similar interactive terminal. I just modified the Auto Responder to use IMAP instead of POP3 as its mail retrieval protocol. The…

Continue reading
Computers & Programming

Done with the Crossword Puzzles

I got the puzzle generator working well enough to generate the puzzle I needed. I’m done with this project. It was interesting when I decided to add clumped words to the algorithm. Four words can all come together  in a four-letter clump. It’s a situation that the normal…

Continue reading
Computers & Programming

Close to Having Clumps

Clump of Letters After looking at this for a while, I figured out how to write the code to handle it. I also figured out another type of clump that I could try to handle as a special case but only if I had some three-letter words. To…

Continue reading
Computers & Programming

Saving a Bitmap File

I added code to save my crossword puzzle and solution to two bitmap files. It is interesting how many people write code to do things of this sort that don’t write it correctly. Puzzle Bitmap void CChildView::SaveImageToFile( const char *pFilename, bool bSolution ) { CSize GridSize = GetGridCellSize();…

Continue reading
Computers & Programming

Crossword Generator

Crossword puzzles are supposed to be designed with a lot of white squares in clumps and with some sort of symmetry. There are different style traditions in the U.S., the U.K, and Japan. Sweden has a very strange looking puzzle style that is a bit different but having…

Continue reading
Linkage Program

Menus With Icons in CMfcRibbonBar

I searched high and low for information about icons in menus. The only thing I found was a lot of people discussing how to use SetMenuItemBitmaps(). Unfortunately, SetMenuItemBitmaps() is for setting the check mark bitmaps, the checked and unchecked image, of the menu item. I tried this in…

Continue reading
Linkage Program

To Blog or Not To Blog

… or How I added something rather unimportant to the Linkage program but had to blog about it just to make a blog entry today. The Microsoft Ribbon Bar, which is just a toolbar designed to completely replace the program menu and toolbars, has an interesting feature that…

Continue reading
Linkage Program

Ribbon Changes and Positioning Feature

I went ahead and separated the View pane in the ribbon bar from the new Dimensions pane in the Linkage program. I am not sure how to label the “show dimensions” check box. Since it is in the Dimensions pane, I can’t really call it “dimensions.” What I…

Continue reading
Linkage Program

Solid Links

I threw in a quick little feature to make the display of solid links more interesting. Solid Links The links with three connectors are drawn a little larger than the two-connector links. It would have been cool if I could figure out how the links all connected and…

Continue reading
Linkage Program

Real World Units

Even though I could have used arbitrary units of measurement for displaying dimensions of parts, that would not have allowed the user the ability to switch units without then enlarging or shrinking their mechanism to get that change. For instance, the user makes something that is 10.000 units…

Continue reading