#include <afx.h>
#include "dll.h"
#include "math.h"
#include "header.h"
#include "windows.h"
void CALLBACK T1(HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime);::SetTimer(1, 0, 2000, T1);void CALLBACK T1(HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime)
{
MessageBox(NULL,"定时器调用成功!","对话框",0);
}错误:error C2501: 'SetTimer' : missing storage-class or type specifiers我已经包含了windows.h。time.h试过,也不行!
#include "dll.h"
#include "math.h"
#include "header.h"
#include "windows.h"
void CALLBACK T1(HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime);::SetTimer(1, 0, 2000, T1);void CALLBACK T1(HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime)
{
MessageBox(NULL,"定时器调用成功!","对话框",0);
}错误:error C2501: 'SetTimer' : missing storage-class or type specifiers我已经包含了windows.h。time.h试过,也不行!
如果DLL是基于无窗口消息的 可以使用 timeSetEvent 多媒体时钟
http://blog.csdn.net/jiangxinyu/article/details/2696447