|Index > Scribe > Getting LGI error on Windows XP|
|Author/Date||Getting LGI error on Windows XP|
|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.|
|This is fixed for the next release.|
|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.