by some reason the TextOut() function don't show me the text:(
but see these code:
#include <iostream>
#include <string.h>
#include <windows.h>
using namespace std;
int main()
{
HDC a=GetDC(GetForegroundWindow());
cout << GetLastError();//i get 0(no errors)
Rectangle(a,3,4,3+80,4+20);//the rectangule is showed
TextOut(a,10,10,"hello world",strlen("hello world"));
cout << GetLastError();//i get 0(no errors)
cin.get();
}
why i can show the rectangule without problems, and the text isn't showed?
(on my game i use a double buffer, but i belive these isn't the problem)