I'm just starting programming with Direct X and I'm trying to just display a bitmap image on my primary surface at this point. When I run the code on any other platform 98, ME, 2000 the image comes out perfect but any xp machine the image is wider than it should be and the colors are wrong as if it's reading the color bytes at the wrong color depth. Both the bitmap and my primary surface are at 24bpp.