   Viewing framerate directx
  I dont understand what the string pointer, is to be, to display my framerate.Using ID3DXFONT::DrawTextLooking around, i think it has something to do with the createDevice D3DPRESENT_PARAMETERS, but i'm not sure what.Thanks.#include <string>static RECT myRect; SetRect(&myRect, 0, 0, 640, 480); //Pointer is just psuedo for what is ment to be there..int stringLength = pointer.length();int DrawText(NULL,  &pointer,  stringLength,  &myRect,  DT_LEFT,  D3DCOLOR_RGBA(255,255,255,255));
  pointer.c_str()   ;  Thanks for getting back to me, i'm not sure what str does though.Does it return the length of the string?   ;  It returns a null terminated C string. Essentially it just returns a pointer to the buffer the string encapsulates. Depending on the length of the string, this either resides within the string object itself, or is allocated later on.   