我從這個頁面了: http://msdn.microsoft.com/en-us/library/ms692402%28v=vs.85%29.aspx#initializing_the_magnifier_run-time_library不能運行微軟的API放大的功能用C
此功能例如:
BOOL SetZoom(float magnificationFactor)
{
// A magnification factor less than 1.0 is not valid.
if (magnificationFactor < 1.0)
{
return FALSE;
}
// Calculate offsets such that the center of the magnified screen content
// is at the center of the screen. The offsets are relative to the
// unmagnified screen content.
int xDlg = (int)((float)GetSystemMetrics(
SM_CXSCREEN) * (1.0 - (1.0/magnificationFactor))/2.0);
int yDlg = (int)((float)GetSystemMetrics(
SM_CYSCREEN) * (1.0 - (1.0/magnificationFactor))/2.0);
return MagSetFullscreenTransform(magnificationFactor, xDlg, yDlg);
}
而我只是做 - 複製 - 粘貼到開發-C++
但是,當我編譯此代碼我得到一個錯誤:
'BOOL' does not name a type
我做錯了什麼?
你的錯誤是什麼? –
錯誤是: 「BOOL」沒有指定類型 – gil123
是否包含''? –
chris