Two funny things I have discovered today. First is an easter-egg in a trace route, from people at that have inserted the plot of Star Wars Episode IV in their internal routes. Just traceroot to see what happens. Here is the listing:

The second is a funny error message when an error…

Read More Programmers with a good sense of humor

I recently ran across a bug with an application ported to the x64 platform. After debugging the application the error turned to be due to integrals layout and casting. I think this is a typical example worth mentioning. It starts with this definition:

which is used for a combo box with SetItemData:


Read More Typical error porting application from 32- to 64-bit

If you include in a VC++ project <mapidefs.h> and <sqltypes.h> and build for the x64 platform you get a redefinition error.

1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\sqltypes.h(283) : error C2371: ‘BOOKMARK’ : redefinition; different basic types 1> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\MAPIDefS.h(1142) : see declaration of ‘BOOKMARK’ The reason is that BOOKMARK is defined in both files. This is…

Read More Redefinition of ‘BOOKMARK’