I'm wrapping some of the Windows GDI API for the PHP project. In particular, in accepting some user-input and then creating a LOGFONT structure with that data. However, the problems comes when I'm trying to set the data for LOGFONT.lfFaceName. This member is of type WCHAR[32]. The title-error occurs whenever I do something like (simplified):
Expand|Select|Wrap|Line Numbers
- lfont.lfFaceName = (WCHAR *)TEXT("Test");