高手帮忙看下GetGlyphOutline函数有关问题

高手帮忙看下GetGlyphOutline函数问题
DWORD nLen=::GetGlyphOutline(pdc->GetSafeHdc(),chartemp,GGO_BITMAP,&glpm,0,NULL,&mmat2);  

(signed)nLen = -1;

请问高手,这是怎么回事呢????


------解决方案--------------------
If GGO_BITMAP, GGO_GRAY2_BITMAP, GGO_GRAY4_BITMAP, GGO_GRAY8_BITMAP, or GGO_NATIVE is specified and the function succeeds, the return value is greater than zero; otherwise, the return value is GDI_ERROR. If one of these flags is specified and the buffer size or address is zero, the return value specifies the required buffer size, in bytes. 

If GGO_METRICS is specified and the function fails, the return value is GDI_ERROR. 

------解决方案--------------------
http://topic.****.net/t/20050216/13/3785400.html
看看这个别人用的!