64,648
社区成员
发帖
与我相关
我的任务
分享
//textRenderable.h:
//textRenderable.dll接口
class DLL_API CTextLatticeCacheMgr //点阵缓存管理类
{
A *m_pA; //其中A 是第三方的字体文件解析引擎
//......
void generateFontLattice(wchar_t uch); //生成unicode字符的点阵坐标函数
}
//textRenderable.cpp:
#include "ThirdHeader.h"
#include "textRenderable.h"
void CTextLatticeCacheMgr::generateFontLattice(wchar_t uch)
{
AInit(m_pA);
//......
}
}
//textRenderable.h:
//textRenderable.dll接口
class DLL_API CTextLatticeCacheMgr //点阵缓存管理类
{
void *m_pA; //把原本的A* 改为void *
//......
void generateFontLattice(wchar_t uch); //生成unicode字符的点阵坐标函数
}
//textRenderable.cpp:
#include "ThirdHeader.h"
#include "textRenderable.h"
void CTextLatticeCacheMgr::generateFontLattice(wchar_t uch)
{
AInit((A*)m_pA); //强制类型转换,哈哈,这样不就避免了向用户暴露不必要的细节了吗?
//......
}
}
printf("hello world")!