解决方案 »

  1.   

    Multimedia Timer Functions
    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                
    );
      

  2.   

    我的时间部分没有问题,,,很精确,,,但是消息发出到到达应用程序时间不准,,,我用sendmessage  postmessage
      

  3.   

    我想问一个问题:你是怎么得到另外一个应用程序上的控件的handle
      

  4.   

    我想还不如用socket吧。用sendmessage不是很好,收信息的速度慢,如果程序一有问题,就收不到。
      

  5.   

    用setevent可以精确到毫秒,用法见帮助文件,
    在windows2000下用sendmessage就可以的
      

  6.   

    参见http://expert.csdn.net/Expert/topic/1165/1165974.xml?temp=4.395694E-02