This is a function right out of the source code on the cd that came with "Isometric Programming with DirectX 7". It crashes with an exception error at the GetDC(). I don't know exactly what could be wrong, especially with the fact that this is totally uncharted territory for me. I tried using memset() on the hdc, but that wasn't the problem. Any help would be appreciated.
LPDIRECTDRAWSURFACE7 LPDDS_LoadFromFile(LPDIRECTDRAW7 lpdd,LPCTSTR lpszFileName)
//load the bitmap
//create offscreen surface with same width and height
//retrieve hdc for surface
//blit image onto surface