Код |
#include <iostream> #include <fstream> #include <string> #include <stdio.h> #include <vector> #include <stdexcept> #include <stdlib.h> #include <conio.h> #include <windows.h> #include <string.h> #include <sstream>
int WINAPI WinMain(HINSTANCE hlnst, HINSTANCE hPrevlnstance, LPSTR lpCmdLine, int nCmdShow) {
int i; int sum = 0; setlocale(0, ""); for (i = 1; i <= 10; i++)
{ sum = sum + i;
} MessageBox (NULL, TextOut(hdc, 10, 20, str.data(sum), 18), "программка", MB_OK);
}
|
Выдается ошибка на строке c TextOut пишется не декларирован hdc (IDE DEVC++) |