CWnd g;
HWND hwnd;
HDC hdc;
hwnd = g.GetSafeHwnd();
hdc = ::GetDC(hwnd);
Graphics graphics(hdc);
graphics.SetSmoothingMode(SmoothingModeHighQuality);
Ошибка при вызове функции
У меня какие-то ошибки!
Не могу понять как их исправить.
Помогите!
Код:
И высвечиваются такие ошибки:
Код:
Round_Control fatal error LNK1120: 3 unresolved externals
Round_Control error LNK2019: unresolved external symbol _GdipDeleteGraphics@4 referenced in function "public: __thiscall Gdiplus::Graphics::~Graphics(void)" (??1Graphics@Gdiplus@@QAE@XZ)
Round_Control error LNK2019: unresolved external symbol _GdipCreateFromHDC@8 referenced in function "public: __thiscall Gdiplus::Graphics::Graphics(struct HDC__ *)" (??0Graphics@Gdiplus@@QAE@PAUHDC__@@@Z)
Round_Control error LNK2019: unresolved external symbol _GdipSetSmoothingMode@8 referenced in function "public: enum Gdiplus::Status __thiscall Gdiplus::Graphics::SetSmoothingMode(enum Gdiplus::SmoothingMode)" (?SetSmoothingMode@Graphics@Gdiplus@@QAE?AW4Status@2@W4SmoothingMode@2@@Z)
Round_Control error LNK2019: unresolved external symbol _GdipDeleteGraphics@4 referenced in function "public: __thiscall Gdiplus::Graphics::~Graphics(void)" (??1Graphics@Gdiplus@@QAE@XZ)
Round_Control error LNK2019: unresolved external symbol _GdipCreateFromHDC@8 referenced in function "public: __thiscall Gdiplus::Graphics::Graphics(struct HDC__ *)" (??0Graphics@Gdiplus@@QAE@PAUHDC__@@@Z)
Round_Control error LNK2019: unresolved external symbol _GdipSetSmoothingMode@8 referenced in function "public: enum Gdiplus::Status __thiscall Gdiplus::Graphics::SetSmoothingMode(enum Gdiplus::SmoothingMode)" (?SetSmoothingMode@Graphics@Gdiplus@@QAE?AW4Status@2@W4SmoothingMode@2@@Z)
А gdiplus.lib не забыл включить в проект?
А как её подключить?
Проблемма разрешилась!
в начале файла