I have had a look on google but nothing conclusive shows up. Anyway.
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.lfFaceN ame. This member is of type WCHAR[32]. The title-error occurs whenever I do something like (simplified):
I'm sure I'm missing something newbie-level here.
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.lfFaceN ame. This member is of type WCHAR[32]. The title-error occurs whenever I do something like (simplified):
Code:
lfont.lfFaceName = (WCHAR *)TEXT("Test");
Comment