怎样向其它程序定时发消息,要精确到毫秒,,用sendmessage or postmessage or keybd_event都不行!在线等待! 空 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Multimedia Timer FunctionsThe following functions are used with multimedia timers.MMRESULT timeBeginPeriod( UINT uPeriod );MMRESULT timeEndPeriod( UINT uPeriod );MMRESULT timeGetDevCaps( LPTIMECAPS ptc, UINT cbtc );MMRESULT timeGetSystemTime( LPMMTIME pmmt, UINT cbmmt );DWORD timeGetTime(VOID);MMRESULT timeKillEvent( UINT uTimerID );void CALLBACK TimeProc( UINT uID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2 );MMRESULT timeSetEvent( UINT uDelay, UINT uResolution, LPTIMECALLBACK lpTimeProc, DWORD dwUser, UINT fuEvent ); 我的时间部分没有问题,,,很精确,,,但是消息发出到到达应用程序时间不准,,,我用sendmessage postmessage 我想问一个问题:你是怎么得到另外一个应用程序上的控件的handle 我想还不如用socket吧。用sendmessage不是很好,收信息的速度慢,如果程序一有问题,就收不到。 用setevent可以精确到毫秒,用法见帮助文件,在windows2000下用sendmessage就可以的 参见http://expert.csdn.net/Expert/topic/1165/1165974.xml?temp=4.395694E-02 怎么取得DBEdit中的值传入数据库? 如何区分字符串中的汉字字符和非汉字字符(例如英文字母,数字,标点符号)? 如何制作动态报表? 大家请帮我一个dbgrid的问题,急呀,,,哥哥,姐姐们,帮我。 如何使label的caption分两行?? 急,急,急!打印小票?! 关于打包问题?? 如何在“发送”菜单中加一个新项目 如何在dbgrid中增加一列? WINDOWS如何启动屏幕保护程序?调用哪些函数? 关于Messagebox 的问题 怎样返回应用程序所在路径,不包括文件名
The following functions are used with multimedia timers.MMRESULT timeBeginPeriod(
UINT uPeriod
);MMRESULT timeEndPeriod(
UINT uPeriod
);MMRESULT timeGetDevCaps(
LPTIMECAPS ptc,
UINT cbtc
);MMRESULT timeGetSystemTime(
LPMMTIME pmmt,
UINT cbmmt
);DWORD timeGetTime(VOID);MMRESULT timeKillEvent(
UINT uTimerID
);void CALLBACK TimeProc(
UINT uID,
UINT uMsg,
DWORD dwUser,
DWORD dw1,
DWORD dw2
);MMRESULT timeSetEvent(
UINT uDelay,
UINT uResolution,
LPTIMECALLBACK lpTimeProc,
DWORD dwUser,
UINT fuEvent
);
在windows2000下用sendmessage就可以的