这个谁会啊!来就送分! 我想写个.exe,它的作用是每月1号提醒我做一件很重要的事。请问各位大虾该怎么写啊! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 SYSTEMTIME st;GetSystemTime(&st);if (st.wDay == 1) // ... CTime m_time; if( m_time .GetDay ()==1){ add your code} 简单例子#include <windows.h>VOID CALLBACK TimerProc( HWND hwnd, // handle to window UINT uMsg, // WM_TIMER message UINT_PTR idEvent, // timer identifier DWORD dwTime // current system time){ SYSTEMTIME Time; GetLocalTime(&Time); if(Time.wDay==1) { if(MessageBox(NULL,"有很重要的事哦!不用再提醒了吧.","提醒",MB_YESNO)==IDYES) { PostQuitMessage(0); } }}int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){ // TODO: Place code here. SetTimer(NULL,0,180000,(TIMERPROC)TimerProc); MSG msg; while(GetMessage(&msg,NULL,0,0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return 0;} 请教各位大神一个问题,关于picture控件的? 刚装VS2008英文版,菜单中文显示乱码问题 分割窗口后 窗口变的非常扁 请教大家一个内存DC绘图的问题,很怪。 关于一个画板程序的图形删除 请大家推荐优秀的VC源码,分不够可以再加 急!如何安装mschart 可以在CCmdTarget类中映射窗口消息吗?我看到一个例子中这么做,也看不出作了什么特殊处理,可我做的时候却不成功,请高手指教这是为什么 ***怎么样像自言自语?*** (高难度问题求解)如何在一个显示器中显示四个桌面呢? 文件的发送类型问题 如何打包 ADO 程序?
GetSystemTime(&st);
if (st.wDay == 1)
// ...
if( m_time .GetDay ()==1)
{
add your code
}
#include <windows.h>
VOID CALLBACK TimerProc(
HWND hwnd, // handle to window
UINT uMsg, // WM_TIMER message
UINT_PTR idEvent, // timer identifier
DWORD dwTime // current system time
)
{
SYSTEMTIME Time;
GetLocalTime(&Time); if(Time.wDay==1)
{
if(MessageBox(NULL,"有很重要的事哦!不用再提醒了吧.","提醒",MB_YESNO)==IDYES)
{
PostQuitMessage(0);
}
}
}int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
SetTimer(NULL,0,180000,(TIMERPROC)TimerProc);
MSG msg;
while(GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return 0;
}