#include "core.h" #define WIN32_LEAN_AND_MEAN #include <iostream> #include <winsock2.h> #include <string> #include <Windows.h> #include <gdiplus.h> #pragma comment(lib, "Ws2_32.lib") #pragma comment (lib,"Gdiplus.lib") using namespace std; using namespace Gdiplus; ... void Create(int n, HDC ConsoleDc){ GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken; HDC hdc=ConsoleDc; // Initialize GDI+. GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); Gdiplus::Graphics graphics(hdc); Image image(L"img.jpg"); graphics.DrawImage(&image, 60, 10); };
Help!
#include <gdiplus.h>
higher. And also: drag#define WIN32_LEAN_AND_MEAN
tostdafx.h
(by the way, where is your place?) - VladD