奶奶去世医院有丧假吗:舟--我想在桌面上显示一些文字,程序错在哪了

来源:百度文库 编辑:中科新闻网 时间:2024/05/18 22:31:40
#include <Windows.h>
#include<iostream.h>
int WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow
)
{
HWND hnd=GetDesktopWindow();
HDC hdc=GetDC(hnd);
TextOut(hdc,0,0,"eegegg",sizeof("eegegg")-1);
if(ReleaseDC(hnd,hdc))
cout<<"yes"<<endl;
else
cout<<"no"<<endl;
return 0;
}