ZeroNerv
June 5th, 2006, 02:04 AM
i'm trying to just get a simple fps counter in top corner of screen but i keep getting errors (funny because i'm pulling this from some samples that are ment to work...
errors
c:\Documents and Settings\Hero\Desktop\C++ Projects\RCoderTank V.01\d3dinit.cpp(41): error C2664: 'D3DXCreateFontIndirectA' : cannot convert parameter 2 from 'LOGFONT *__w64 ' to 'const D3DXFONT_DESCA *'
line of code =
if(FAILED(D3DXCreateFontIndirect(Device, &lf, &Font)))
{
::MessageBox(0, "D3DXCreateFontIndirect() - FAILED", 0, 0);
::PostQuitMessage(0);
}
c:\Documents and Settings\Hero\Desktop\C++ Projects\RCoderTank V.01\d3dinit.cpp(80): error C2660: 'ID3DXFont::DrawTextA' : function does not take 4 arguments
line of code =
Font->DrawTextA( FPSString, -1, &rect, 0xff000000);
i'v also added the project.
i appreciate anyhelp..
take pitty on a noob :P i'm trying.
errors
c:\Documents and Settings\Hero\Desktop\C++ Projects\RCoderTank V.01\d3dinit.cpp(41): error C2664: 'D3DXCreateFontIndirectA' : cannot convert parameter 2 from 'LOGFONT *__w64 ' to 'const D3DXFONT_DESCA *'
line of code =
if(FAILED(D3DXCreateFontIndirect(Device, &lf, &Font)))
{
::MessageBox(0, "D3DXCreateFontIndirect() - FAILED", 0, 0);
::PostQuitMessage(0);
}
c:\Documents and Settings\Hero\Desktop\C++ Projects\RCoderTank V.01\d3dinit.cpp(80): error C2660: 'ID3DXFont::DrawTextA' : function does not take 4 arguments
line of code =
Font->DrawTextA( FPSString, -1, &rect, 0xff000000);
i'v also added the project.
i appreciate anyhelp..
take pitty on a noob :P i'm trying.