Constants like 0x10000 should be named and defined either at the head of the file, or in a header file.