   Directx9 c++ createVertextBuffer help
  Hi im trying to to separate the code into classes from beginning Directx9 by wendy jones chap4 example 1. But im getting a runtime error, could anyone help^^.This is the error i got during runtime.Quote:Directx.exe!winclass::createVertexBuffer(int size=60, unsigned long usage=68)  Line 82 + 0x20 bytesC++Directx.exe!winclass::SetupVB()  Line 23 + 0xc bytesC++Directx.exe!WinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00161f57, int nCmdShow=1)  Line 32C++Directx.exe!__tmainCRTStartup()  Line 589 + 0x35 bytesCDirectx.exe!WinMainCRTStartup()  Line 414C