Original Post
Hello. I am trying to use ID3DXLine to draw lines in my program. I set a null pointer called pLine, then I used D3DXCreateLine like this "D3DXCreateLine(gd3dDevice, pLine);" I then did this:pLine->Begin();, but I got an error saying "left of '->Begin' must point to class/struct/union/generic type" Doesn't D3DXCreateLine make pLine a pointer to an ID3DXLine interface? If not what am I doing wrong? If so what am I doing wrong? Thanks for any help.