Answer
Both the dog and the fruit fly have related, homolgous homeoboxes directing some of development. The difference is which particular structures (for a dog or for a fruit fly) are produced as a result of the action of those genes.
Work Step by Step
Review the text on the various kinds of genes which control development and just how widely they are shared--MADS genes, for instance, are seen in all major eukaryotic kingdoms.