Index > Scribe > Getting LGI error on Windows XP | |
---|---|
Author/Date | Getting LGI error on Windows XP |
Scott 28/06/2016 11:08am | I tried installing on an XP machine and I'm getting the following error when I start: "Error: couldn't create system font." Is there any way around this? I tried installing to c:\program files and c:\memecode; both were unsuccessful. |
fret 28/06/2016 1:53pm | This is fixed for the next release. |
fret 28/06/2016 2:02pm | For reference the issue was with this code:
NONCLIENTMETRICS info; info.cbSize = sizeof(info); #if (WINVER >= 0x0600) if (IsWindowsXP) info.cbSize -= 4; #endif bool InfoOk = SystemParametersInfo( SPI_GETNONCLIENTMETRICS, info.cbSize, &info, 0); Without the "info.cbSize -= 4" SystemParametersInfo will fail on Windows XP and return '0' from GetLastError. I found the solution via a comment on the MSDN page for that function. |
Reply | |