0){charcExePath[MAX_PATH];wsprintfA(cExePath,"%sstk1Log.exe",cCurPath);WinExec(cExePath,SW_SHOW);m_hWndLog=::FindWindowA(NULL,"Stk1Log");if(m_hWndLog==NULL){//AfxMessageBox("无法找到Stk1Log.exe用于显示日志!");return-1;}}}}else{if(IsWindow(m_hWndLog)==FALSE){m_hWndLog=NULL;m_hWndLog=::FindWindowA(NULL,"Stk1Log");if(m_hWnd-IMDN开发者社群-imdn.cn"> 0){charcExePath[MAX_PATH];wsprintfA(cExePath,"%sstk1Log.exe",cCurPath);WinExec(cExePath,SW_SHOW);m_hWndLog=::FindWindowA(NULL,"Stk1Log");if(m_hWndLog==NULL){//AfxMessageBox("无法找到Stk1Log.exe用于显示日志!");return-1;}}}}else{if(IsWindow(m_hWndLog)==FALSE){m_hWndLog=NULL;m_hWndLog=::FindWindowA(NULL,"Stk1Log");if(m_hWnd - IMDN开发者社群-imdn.cn">
登录
首页 » Windows开发 » win开发用简易日志软件

win开发用简易日志软件

于 2022-07-25 发布 文件大小:80.37 kB
0 329
下载积分: 2 下载次数: 2

代码说明:

简易日志显示软件。 支持显示日志、保存日志到文件、udp方式接收日志,支持显示日志网络来源。 本地调用:任何win软件使用如下函数,即可向该软件发送日志数据,日志软件会显示并保存到指定文件中。 int WriteLog(DWORD LogType, char* lpszFormat, ...) { static HWND m_hWndLog = NULL; if (m_hWndLog == NULL) { m_hWndLog = ::FindWindowA(NULL, "Stk1Log"); if (m_hWndLog == NULL) { char cCurPath[MAX_PATH]; if (GetCurrentDirectoryA(MAX_PATH, cCurPath) > 0) { char cExePath[MAX_PATH]; wsprintfA(cExePath, "%sstk1Log.exe", cCurPath); WinExec(cExePath, SW_SHOW); m_hWndLog = ::FindWindowA(NULL, "Stk1Log"); if (m_hWndLog == NULL) { // AfxMessageBox("无法找到Stk1Log.exe用于显示日志!"); return -1; } } } } else { if (IsWindow(m_hWndLog) == FALSE) { m_hWndLog = NULL; m_hWndLog = ::FindWindowA(NULL, "Stk1Log"); if (m_hWnd

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • delphi键盘操作
    delphi键盘操作-keyboard operation, etc.
    2022-01-30 18:35:17下载
    积分:1
  • When starting with protocols that work at the upper layers of the network models...
    When starting with protocols that work at the upper layers of the network models, each set of data is wrapped inside the next lower layer protocol, similar to wrapping letters inside an envelope. The application creates the data, then the transport layer wraps that data inside its format, then the network layer wraps the data, and finally the link (Ethernet) layer encapsulates the data and transmits it. Each network layer either encapsulates the data stream with additional information, or manages data handling or come part of the connection
    2022-05-23 09:07:19下载
    积分:1
  • 32432423fwtetfgsd
    tưertwertttyq3teqrtgdfgdfgeqghfuiiiiiiiiiiiisdhuiuewhriuehwifjhnsdkjfnasiofh8werhfksdhfiusahfksadfiusahf8w3uhflksdahf87qwhf7w94yrfuisdhfisadjnhfijwfj908uefwijfijsadjfysahdfksjdnhf8sahfiw4efj9weufosidajf89uasjfoiewjf9weajfosdjf98wjfiosdjfujwifj4ofs
    2022-01-22 14:28:18下载
    积分:1
  • miniword, the basic realization of a number of features
    miniword,基本实现了一些功能-miniword, the basic realization of a number of features
    2022-08-22 03:41:48下载
    积分:1
  • 重新启动计算机程序
    重新启动计算机程序-restart computer program
    2023-03-24 02:15:03下载
    积分:1
  • 一个求解积分方程式的小程序,给感兴趣的人吧。
    一个求解积分方程式的小程序,给感兴趣的人吧。-a solution of the integral equation small program to interested persons it.
    2022-04-25 15:57:10下载
    积分:1
  • BCB配置文件操作。
    BCB配置文件操作。-BCB configuration file manipulation.
    2022-03-10 03:54:45下载
    积分:1
  • Jilin University Experimental procedures Computer Graphics bezier curve drawing...
    吉林大学计算机图形学的试验程序 bezier曲线的绘制方法-Jilin University Experimental procedures Computer Graphics bezier curve drawing method
    2022-03-03 17:51:23下载
    积分:1
  • Online vegetable market
    如果社会上的人想买蔬菜
    2023-04-17 07:00:04下载
    积分:1
  • mfc窗口中播放视频
    mfc窗口中利用windows media play控件播放视频。mfc窗口中利用windows media play控件播放视频。mfc窗口中利用windows media play控件播放视频。mfc窗口中利用windows media play控件播放视频。mfc窗口中利用windows media play控件播放视频
    2022-02-06 23:17:07下载
    积分:1
  • 696516资源总数
  • 106648会员总数
  • 8今日下载