请帮助我一个编译错误!

来源:百度知道 编辑:UC知道 时间:2024/06/02 06:10:03
我经常被这些错误所困惑~~~
error C2664: 'D3DXCreateFontIndirectA' : cannot convert parameter 2 from 'LOGFONT *' to 'const D3DXFONT_DESCA *'

D3DXCreateFontIndirectA处不能将LONGFONT类型的变量转换为const D3DXFONT_DESCA *类型,请检查传入的参数。

你这个函数是 Dx9 的字体显示函数吧?
我记得dx9 sdk 里面有个例子就是讲的font 的使用
里面有4,5种font的使用方法
看看就会了