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 290
下载积分: 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 个回复

  • 这个程序演示了如何操作注册表来编写程序,其中…
    本程序演示了如何操作注册表向其中写入程序一般信息及程序运行时所需的变量值。-This program demonstrates how to operate the registry to write programs in which general information and procedures needed to run the variable value.
    2022-06-02 12:22:33下载
    积分:1
  • windows ce applications to perform operations on win ce device.
    windows ce applications to perform operations on win ce device.
    2022-05-20 04:29:20下载
    积分:1
  • C-mex files for MATLAB encounter the following problem when compiling them with WATCOM 11.0: All access-functions to files (fprintf, fscanf) cannot handle double variables, only integer and strings are read or written correctly. The file convert.c contains two functions: You may read a double-variable as a string from the file and convert it to a double (function string2double) and you may convert a double to a string (function double2string) and write it to a file (see main() in convert.c). The file conditio.dat is an example of numbers read by convert.c. The conv.exe was compiled on a Windows95-system. The files were tested for MATLAB 5.2 and WATCOM 11.0a result of "ver" is: MATLAB Version 5.2.1.1420 on PCWIN-C-mex files for MATLAB encounter the following problem when compiling them with WATCOM 11.0: All access-functions to files (fprintf, fscanf) cannot handle double variables, only integer and strings are read or written correctly. The file convert.c c
    2022-06-01 01:50:17下载
    积分:1
  • 使用WMI提取管理信息
    Using WMI to Extract Management Information
    2022-03-09 12:18:08下载
    积分:1
  • 求一堆点最近的坐标输出,把过程里所有矩阵的影响信息输出
    求一堆点最近的坐标输出,把过程里所有矩阵的影响信息输出-For a pile of points the coordinates of recent output, the process of the impact of all matrix information output
    2022-07-10 11:40:34下载
    积分:1
  • 公话计费系统源码
    公话计费系统源码-Gong source billing system
    2022-02-02 02:08:09下载
    积分:1
  • MathPro is a math program capable of performing complex operations. It is partic...
    MathPro is a math program capable of performing complex operations. It is particularly useful for Algebra students of all levels. It performs many operations including solving quadratic equations.
    2022-04-17 20:23:11下载
    积分:1
  • 讲解C++,PPT(主要是关于类和对象)
    讲解C++的PPT(主要是关于类和对象)-Explain the C++, PPT (mainly about classes and objects)
    2022-02-04 17:13:52下载
    积分:1
  • 关于俄罗斯方块的C++程序,代码简单,但界面显示完备,神奇的程序...
    关于俄罗斯方块的C++程序,代码简单,但界面显示完备,神奇的程序-On the Russian box, C++ program code is simple, but the interface shows a complete, magical process
    2022-02-03 11:01:23下载
    积分:1
  • VFP 小程序设计 一个不错的程序设计说明
    VFP 小程序设计 一个不错的程序设计说明-VFP applet program to design a good design that
    2022-03-05 16:38:15下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载