   Blt from 8 bits BW back surface to 32 bits RGB primary surface
  Hi world,I use DirectDraw in windowed mode.I want to be able to display a 8 bits gray scale surface in my SDI application.The primary pixel format surface is the screen pixel format.Currently it's 32 bits RGB.I set a 256 entries palette to the backsurface:for(int i = 0; i < 256; i++){   ape.peRed = ape.peGreen = ape.peBlue = i;   ape.peFlags = PC_NOCOLLAPSE;}Then I do a Blt from backsurface to primarysurface...I've no error but the display is a simple copy from all the 8 bits back surface to the 32 bits primary surface.example:The 8 bits gray scale back surface (0xA0 gray value)0xA0 0xA0 0xA0 0xA00xA0 0xA0 0xA0 0xA00xA0 0xA0 0xA0 0xA00xA0 0xA0 0xA0 0xA0After the copy to the 32 bits primary surface:0xA0A0A0A0 0xA0A0A0A0 0xA0A0A0A0 0xA0A0A0A00x00000000 0x00000000 0x00000000 0x000000000x00000000 0x00000000 0x00000000 0x000000000x00000000 0x00000000 0x00000000 0x00000000Instead of:0x00A0A0A0 0x00A0A0A0 0x00A0A0A0 0x00A0A0A00x00A0A0A0 0x00A0A0A0 0x00A0A0A0 0x00A0A0A00x00A0A0A0 0x00A0A0A0 0x00A0A0A0 0x00A0A0A00x00A0A0A0 0x00A0A0A0 0x00A0A0A0 0x00A0A0A0What's the problem?Thanks in advance for any advice...
  The Blt method of DirectDraw cannot do color format conversions.You can try a fallback method with GDI (which can do color conversions, but is slower) like it's implemented here:http://www.codeproject.com/directx/ddraw_extension.asp;  Is there a reason you're using DDraw instead of D3D and textured quads?   ;  I don't need D3R because It's not a 3D oriented application I develop.But, it's a video rendering.DDraw let me have easly access to video memory...I don't use DirectPlay because my application is very specific.DirectPlay don't let me develop light application.   