-
win开发用简易日志软件
简易日志显示软件。
支持显示日志、保存日志到文件、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
- 2022-07-25 17:36:54下载
- 积分:1
-
ftp server source haohao cankao
ftp server source haohao cankao
- 2022-05-09 07:57:48下载
- 积分:1
-
EDA 网络操作实验。。。适用于嵌入式操作系统或者linux操作系统...
EDA 网络操作实验。。。适用于嵌入式操作系统或者linux操作系统-dmoemg kdeomg ,deid diean。you can use this for linux systen
- 2022-08-18 09:25:58下载
- 积分:1
-
一个用于打印信封的小程序,请大家一起分享
一个用于打印信封的小程序,请大家一起分享-For printing envelopes a small program, please share
- 2022-07-01 01:45:48下载
- 积分:1
-
该计算器用于计算大学成绩加权分,专业平均分,以及各学期的加权成绩...
该计算器用于计算大学成绩加权分,专业平均分,以及各学期的加权成绩-The calculator is used to calculate the weighted sub-college grades, professional average score, as well as the weighting term results
- 2023-08-11 22:30:08下载
- 积分:1
-
Somebody s Socket SMTP Sample Code
Somebody s Socket SMTP Sample Code
- 2022-04-22 01:13:49下载
- 积分:1
-
This ia a debug/undebug program with VB language, the function is not perfect .I...
这是一款VB程序调试及反编译的工具,功能上还不是很好但希望能有点用-This ia a debug/undebug program with VB language, the function is not perfect .I hoppe it is useful.
- 2022-09-16 23:20:05下载
- 积分:1
-
对基本的vc程序控制的研究比较,与大家分享,好…
学习VC控件的比较基础的程序,与大家分享,适合初学者-Comparison of VC control study of the basic procedures, to share with you, suitable for beginners
- 2022-06-01 09:12:58下载
- 积分:1
-
在第1章中,我们首先讨论在使用和不使用M F C的情况下创建一个窗口,以便清楚地了解
M F C是如何工作的。M F C窗口既可以由属于M F C的C +
在第1章中,我们首先讨论在使用和不使用M F C的情况下创建一个窗口,以便清楚地了解
M F C是如何工作的。M F C窗口既可以由属于M F C的C + +类创建,也可以由一个早于并存在于
M F C之外的非C + +窗口类创建。我们将进一步观看窗口类并讨论那些由Wi n d o w s操作系统提
供的窗口类。最后,再看看M F C应用程序中都有什么。-In Chapter 1, we first discuss the use and does not use MFC create a window to a clear understanding of how the work of MFC. MFC window can belong to MFC from the C++ Type create, you can co-exist as early as by an outside non-MFC is C++ Window class to create. We will further watch window class and discussed by the Wi ndows provided by the operating system window class. Finally, take a look at MFC application has what.
- 2022-05-18 08:31:25下载
- 积分:1
-
这是projectku
函数(n)
- 2022-12-19 11:55:03下载
- 积分:1