Hi
I'm pretty new to game prgramming and need a little help.

My program compiles alright but when i run it it crashes.

When i debug it is says:

Unhandled exception at 0x00401359 in DirectX setup.exe: 0xC0000005: Access violation reading location 0x00000000.
I can post the code if you need it. Just let me know.