   2D XRGB Array goes into video memory?
  I am new to DirectX.  I read some tutorials.  I examined Direct 2D surface references.  I am unable to find the correct functions.  I only need to use very simple Direct 2D surface functions.I use C++ Standard I/O functions to load image bitmap into memory.  The memory holds 2D raw array.  2D raw array looks like "unsigned long *imageArray = new unsigned long [320x200];".  imageArray holds XRGB in each element.  I don't use D3DX functions to load image bitmap into texture.Can you please provide me the sample code or Direct 2D function?  How can I lock video memory before I copy imageArray into video memory?  The copy to each XRGB element can be done inside between BeginScene() and EndScene() before the screen is rendered on one frame.I thank you for your assistance.   