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

  • xml
    读写xml文档,并可以在编码间相互转换,UTF-8-xml
    2022-06-11 12:57:35下载
    积分:1
  • Client
    TCP通讯中的Client端设计,基于TCP、Socket,与Server实现通讯-Client-side TCP communication in the design, based on TCP, Socket, and the Server to achieve communication
    2023-07-08 19:25:05下载
    积分:1
  • kohonen som with drwing it map and a nice gui
    kohonen som with drwing it map and a nice gui
    2022-03-01 15:23:48下载
    积分:1
  • 牛顿法解方程之混沌方式,很直观的,界面也很漂亮。
    牛顿法解方程之混沌方式,很直观的,界面也很漂亮。-Newton equation solution chaos, I am very intuitive, and the interface is very pretty.
    2022-07-19 06:47:09下载
    积分:1
  • PZT控制器程序。
    压电控制器程序。
    2022-07-19 23:28:34下载
    积分:1
  • 基于 Java 和 Web 的信用贷款管理系统
    该信贷系统结合JSP和MySQL数据库的运用,采用JAVA语言开发,JS、HTML5、CSS等辅助前端界面的设计,最终实现了基本的信用贷款业务功能需求。该信贷系统主要分为管理员、业务员、客户经理三种权限登录,管理员登录之后添加部门信息和员工信息,归属员工所属部门和添加员工权限。业务员完成贷款客户信息资料的录入、贷款申请、贷款发放、合同添加、贷款还款、逾期催收等功能。客户经理主要是对贷款申请资料的审核,实现分层审贷的效果,业务员只能对已通过审核的贷款客户发放贷款。
    2022-07-23 07:00:12下载
    积分:1
  • 绘制位图,windows32程序。功能简单但是展前景很大。
    绘制位图,windows32程序。功能简单但是发展前景很大。-draw picture
    2023-06-28 17:40:04下载
    积分:1
  • Make the snake grow longer by directing it to the food. % Extra bonus points a...
    Make the snake grow longer by directing it to the food. % Extra bonus points are given from hearts, eat them as fast as possible % as amount of bonus points decreases with time. % Higher level gives more points for the food but will also make it % tougher to steer a long snake as speed increaces. % Five different mazes as well as play w/o maze are possible.-Make the snake grow longer by directing it to the food. Extra bonus points are given from hearts, eat them as fast as possible as amount of bonus points decreases with time. Higher level gives more points for the food but will also make it tougher to steer a long snake as speed increaces. Five different mazes as well as play w/o maze are possible.
    2022-07-03 09:36:37下载
    积分:1
  • under several rows and columns, creating a random array, and the inquiry
    根据行和列数,随机创建一个数组,并有查询功能-under several rows and columns, creating a random array, and the inquiry
    2022-02-15 01:25:16下载
    积分:1
  • wins mp3波形显示
    项目的目的是播放mp3并且实时显示mp3波形,与频谱相对应,项目中的sln文件可以用visual studio2010软件直接打开,并且可以直接编译运行。对大家了解win32的编程和MP3的播放都有很大的帮助
    2022-04-18 11:34:40下载
    积分:1
  • 696518资源总数
  • 105540会员总数
  • 37今日下载