mirror of
https://github.com/Cc28256/CcRemote.git
synced 2025-06-08 13:29:50 +00:00
添加了ini配置文件,作用于根据配置文件设置端口
This commit is contained in:
parent
c7adb801d6
commit
8be9451190
Binary file not shown.
54
CcRemote/CcRemote/CSettingDlg.cpp
Normal file
54
CcRemote/CcRemote/CSettingDlg.cpp
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
// CSettingDlg.cpp: 实现文件
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "pch.h"
|
||||||
|
#include "CcRemote.h"
|
||||||
|
#include "CSettingDlg.h"
|
||||||
|
#include "afxdialogex.h"
|
||||||
|
|
||||||
|
|
||||||
|
// CSettingDlg 对话框
|
||||||
|
|
||||||
|
IMPLEMENT_DYNAMIC(CSettingDlg, CDialogEx)
|
||||||
|
|
||||||
|
CSettingDlg::CSettingDlg(CWnd* pParent /*=nullptr*/)
|
||||||
|
: CDialogEx(IDD_DIALOG_SETTING, pParent)
|
||||||
|
, m_nListernProt(0)
|
||||||
|
, m_nMax_Connect(0)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
CSettingDlg::~CSettingDlg()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void CSettingDlg::DoDataExchange(CDataExchange* pDX)
|
||||||
|
{
|
||||||
|
CDialogEx::DoDataExchange(pDX);
|
||||||
|
|
||||||
|
DDX_Text(pDX, IDC_EDIT_PORT, m_nListernProt);
|
||||||
|
DDX_Text(pDX, IDC_EDIT_MAX, m_nMax_Connect);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BEGIN_MESSAGE_MAP(CSettingDlg, CDialogEx)
|
||||||
|
ON_BN_CLICKED(IDOK, &CSettingDlg::OnBnClickedOk)
|
||||||
|
END_MESSAGE_MAP()
|
||||||
|
|
||||||
|
|
||||||
|
// CSettingDlg 消息处理程序
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void CSettingDlg::OnBnClickedOk()
|
||||||
|
{
|
||||||
|
// TODO: 在此添加控件通知处理程序代码
|
||||||
|
|
||||||
|
UpdateData(TRUE);
|
||||||
|
((CCcRemoteApp *)AfxGetApp())->m_IniFile.SetInt("Settings", "ListenPort", m_nListernProt); //向ini文件中写入值
|
||||||
|
((CCcRemoteApp *)AfxGetApp())->m_IniFile.SetInt("Settings", "MaxConnection", m_nMax_Connect);
|
||||||
|
MessageBox("设置成功,重启本程序后生效!");
|
||||||
|
|
||||||
|
CDialogEx::OnOK();
|
||||||
|
}
|
30
CcRemote/CcRemote/CSettingDlg.h
Normal file
30
CcRemote/CcRemote/CSettingDlg.h
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
|
||||||
|
// CSettingDlg 对话框
|
||||||
|
|
||||||
|
class CSettingDlg : public CDialogEx
|
||||||
|
{
|
||||||
|
DECLARE_DYNAMIC(CSettingDlg)
|
||||||
|
|
||||||
|
public:
|
||||||
|
CSettingDlg(CWnd* pParent = nullptr); // 标准构造函数
|
||||||
|
virtual ~CSettingDlg();
|
||||||
|
|
||||||
|
// 对话框数据
|
||||||
|
#ifdef AFX_DESIGN_TIME
|
||||||
|
enum { IDD = IDD_DIALOG_SETTING };
|
||||||
|
#endif
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
||||||
|
|
||||||
|
DECLARE_MESSAGE_MAP()
|
||||||
|
public:
|
||||||
|
|
||||||
|
afx_msg void OnBnClickedOk();
|
||||||
|
// //监控编辑框对象
|
||||||
|
int m_nListernProt;
|
||||||
|
// //最大连接编辑框对象
|
||||||
|
int m_nMax_Connect;
|
||||||
|
};
|
@ -9,7 +9,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "resource.h" // 主符号
|
#include "resource.h" // 主符号
|
||||||
|
#include "IniFile.h"
|
||||||
|
|
||||||
// CCcRemoteApp:
|
// CCcRemoteApp:
|
||||||
// 有关此类的实现,请参阅 CcRemote.cpp
|
// 有关此类的实现,请参阅 CcRemote.cpp
|
||||||
@ -20,6 +20,7 @@ class CCcRemoteApp : public CWinApp
|
|||||||
public:
|
public:
|
||||||
CCcRemoteApp();
|
CCcRemoteApp();
|
||||||
|
|
||||||
|
CIniFile m_IniFile;//配置文件对象
|
||||||
// 重写
|
// 重写
|
||||||
public:
|
public:
|
||||||
virtual BOOL InitInstance();
|
virtual BOOL InitInstance();
|
||||||
|
Binary file not shown.
@ -201,11 +201,13 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="CcRemote.h" />
|
<ClInclude Include="CcRemote.h" />
|
||||||
<ClInclude Include="CcRemoteDlg.h" />
|
<ClInclude Include="CcRemoteDlg.h" />
|
||||||
|
<ClInclude Include="CSettingDlg.h" />
|
||||||
<ClInclude Include="framework.h" />
|
<ClInclude Include="framework.h" />
|
||||||
<ClInclude Include="include\Buffer.h" />
|
<ClInclude Include="include\Buffer.h" />
|
||||||
<ClInclude Include="include\CpuUsage.h" />
|
<ClInclude Include="include\CpuUsage.h" />
|
||||||
<ClInclude Include="include\IOCPServer.h" />
|
<ClInclude Include="include\IOCPServer.h" />
|
||||||
<ClInclude Include="include\Mapper.h" />
|
<ClInclude Include="include\Mapper.h" />
|
||||||
|
<ClInclude Include="IniFile.h" />
|
||||||
<ClInclude Include="pch.h" />
|
<ClInclude Include="pch.h" />
|
||||||
<ClInclude Include="PublicStruct.h" />
|
<ClInclude Include="PublicStruct.h" />
|
||||||
<ClInclude Include="Resource.h" />
|
<ClInclude Include="Resource.h" />
|
||||||
@ -215,6 +217,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="CcRemote.cpp" />
|
<ClCompile Include="CcRemote.cpp" />
|
||||||
<ClCompile Include="CcRemoteDlg.cpp" />
|
<ClCompile Include="CcRemoteDlg.cpp" />
|
||||||
|
<ClCompile Include="CSettingDlg.cpp" />
|
||||||
<ClCompile Include="include\Buffer.cpp">
|
<ClCompile Include="include\Buffer.cpp">
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
|
||||||
@ -226,6 +229,10 @@
|
|||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="IniFile.cpp">
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Use</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Use</PrecompiledHeader>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="pch.cpp">
|
<ClCompile Include="pch.cpp">
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<Filter Include="重写控件">
|
<Filter Include="重写控件">
|
||||||
<UniqueIdentifier>{476b0088-5a08-4c04-af41-397f23c6743b}</UniqueIdentifier>
|
<UniqueIdentifier>{476b0088-5a08-4c04-af41-397f23c6743b}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
<Filter Include="配置读取">
|
||||||
|
<UniqueIdentifier>{8cd661d2-1faa-45d7-bb15-62aa4ca09e28}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="CcRemote.h">
|
<ClInclude Include="CcRemote.h">
|
||||||
@ -54,6 +57,12 @@
|
|||||||
<ClInclude Include="include\Mapper.h">
|
<ClInclude Include="include\Mapper.h">
|
||||||
<Filter>头文件</Filter>
|
<Filter>头文件</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="IniFile.h">
|
||||||
|
<Filter>配置读取</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="CSettingDlg.h">
|
||||||
|
<Filter>头文件</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="CcRemote.cpp">
|
<ClCompile Include="CcRemote.cpp">
|
||||||
@ -77,6 +86,12 @@
|
|||||||
<ClCompile Include="include\IOCPServer.cpp">
|
<ClCompile Include="include\IOCPServer.cpp">
|
||||||
<Filter>源文件</Filter>
|
<Filter>源文件</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="IniFile.cpp">
|
||||||
|
<Filter>配置读取</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="CSettingDlg.cpp">
|
||||||
|
<Filter>源文件</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ResourceCompile Include="CcRemote.rc">
|
<ResourceCompile Include="CcRemote.rc">
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#include "CcRemote.h"
|
#include "CcRemote.h"
|
||||||
#include "CcRemoteDlg.h"
|
#include "CcRemoteDlg.h"
|
||||||
#include "afxdialogex.h"
|
#include "afxdialogex.h"
|
||||||
|
#include "CSettingDlg.h"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define new DEBUG_NEW
|
#define new DEBUG_NEW
|
||||||
@ -210,7 +211,7 @@ BOOL CCcRemoteDlg::OnInitDialog()
|
|||||||
rect.bottom += 20;
|
rect.bottom += 20;
|
||||||
MoveWindow(rect);
|
MoveWindow(rect);
|
||||||
//----------------------------------------|
|
//----------------------------------------|
|
||||||
Activate(2000,9999);
|
ListenPort();
|
||||||
Test();
|
Test();
|
||||||
|
|
||||||
return TRUE; // 除非将焦点设置到控件,否则返回 TRUE
|
return TRUE; // 除非将焦点设置到控件,否则返回 TRUE
|
||||||
@ -531,6 +532,8 @@ void CCcRemoteDlg::OnOnlineDelete()
|
|||||||
void CCcRemoteDlg::OnMainSet()
|
void CCcRemoteDlg::OnMainSet()
|
||||||
{
|
{
|
||||||
// TODO: 在此添加命令处理程序代码
|
// TODO: 在此添加命令处理程序代码
|
||||||
|
CSettingDlg MySettingDlg;
|
||||||
|
MySettingDlg.DoModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -692,3 +695,15 @@ void CCcRemoteDlg::OnIconNotify(WPARAM wParam, LPARAM lParam)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void CCcRemoteDlg::ListenPort()
|
||||||
|
{
|
||||||
|
int nPort = ((CCcRemoteApp*)AfxGetApp())->m_IniFile.GetInt("Settings", "ListenPort"); //读取ini 文件中的监听端口
|
||||||
|
int nMaxConnection = ((CCcRemoteApp*)AfxGetApp())->m_IniFile.GetInt("Settings", "MaxConnection"); //读取最大连接数
|
||||||
|
if (nPort == 0)
|
||||||
|
nPort = 80;
|
||||||
|
if (nMaxConnection == 0)
|
||||||
|
nMaxConnection = 10000;
|
||||||
|
Activate(nPort, nMaxConnection); //开始监听
|
||||||
|
}
|
@ -80,11 +80,13 @@ private:
|
|||||||
void InitToolBar();//初始化工具条按钮控件
|
void InitToolBar();//初始化工具条按钮控件
|
||||||
void InitSystemMenu();//初始化系统托盘菜单
|
void InitSystemMenu();//初始化系统托盘菜单
|
||||||
void AddList(CString strIP, CString strAddr, CString strPCName, CString strOS, CString strCPU, CString strVideo, CString strPing);
|
void AddList(CString strIP, CString strAddr, CString strPCName, CString strOS, CString strCPU, CString strVideo, CString strPing);
|
||||||
void ShowMessage(bool bIsOK, CString strMsg);
|
void ShowMessage(bool bIsOK, CString strMsg);//显示日志
|
||||||
void Test();
|
void Test();
|
||||||
|
|
||||||
|
void ListenPort();
|
||||||
|
|
||||||
static void CALLBACK NotifyProc(LPVOID lpParam, ClientContext* pContext, UINT nCode);
|
static void CALLBACK NotifyProc(LPVOID lpParam, ClientContext* pContext, UINT nCode);
|
||||||
void Activate(UINT nPort, UINT nMaxConnections);
|
void Activate(UINT nPort, UINT nMaxConnections);//监听端口
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//-------------自定义消息处理-------------
|
//-------------自定义消息处理-------------
|
||||||
|
87
CcRemote/CcRemote/IniFile.cpp
Normal file
87
CcRemote/CcRemote/IniFile.cpp
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
// IniFile.cpp: implementation of the CIniFile class.
|
||||||
|
//
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "pch.h"
|
||||||
|
#include "IniFile.h"
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
#undef THIS_FILE
|
||||||
|
static char THIS_FILE[]=__FILE__;
|
||||||
|
#define new DEBUG_NEW
|
||||||
|
#endif
|
||||||
|
#define MAX_LENGTH 256
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
// Construction/Destruction
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
CIniFile::CIniFile()
|
||||||
|
{
|
||||||
|
char szAppName[MAX_PATH];
|
||||||
|
int len;
|
||||||
|
|
||||||
|
GetModuleFileName(NULL, szAppName, sizeof(szAppName));
|
||||||
|
len = strlen(szAppName);
|
||||||
|
for(int i=len; i>0; i--)
|
||||||
|
{
|
||||||
|
if(szAppName[i] == '.')
|
||||||
|
{
|
||||||
|
szAppName[i+1] = '\0';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
strcat(szAppName, "ini");
|
||||||
|
IniFileName = szAppName;
|
||||||
|
}
|
||||||
|
|
||||||
|
CIniFile::~CIniFile()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
CString CIniFile::GetString(CString AppName,CString KeyName,CString Default)
|
||||||
|
{
|
||||||
|
TCHAR buf[MAX_LENGTH];
|
||||||
|
GetPrivateProfileString(AppName, KeyName, Default, buf, sizeof(buf), IniFileName);
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
int CIniFile::GetInt(CString AppName,CString KeyName,int Default)
|
||||||
|
{
|
||||||
|
return ::GetPrivateProfileInt(AppName, KeyName, Default, IniFileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned long CIniFile::GetDWORD(CString AppName,CString KeyName,unsigned long Default)
|
||||||
|
{
|
||||||
|
TCHAR buf[MAX_LENGTH];
|
||||||
|
CString temp;
|
||||||
|
temp.Format("%u",Default);
|
||||||
|
GetPrivateProfileString(AppName, KeyName, temp, buf, sizeof(buf), IniFileName);
|
||||||
|
return atol(buf);
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOL CIniFile::SetString(CString AppName,CString KeyName,CString Data)
|
||||||
|
{
|
||||||
|
return ::WritePrivateProfileString(AppName, KeyName, Data, IniFileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOL CIniFile::SetInt(CString AppName,CString KeyName,int Data)
|
||||||
|
{
|
||||||
|
CString temp;
|
||||||
|
temp.Format("%d", Data);
|
||||||
|
return ::WritePrivateProfileString(AppName, KeyName, temp, IniFileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOL CIniFile::SetDouble(CString AppName,CString KeyName,double Data)
|
||||||
|
{
|
||||||
|
CString temp;
|
||||||
|
temp.Format("%f",Data);
|
||||||
|
return WritePrivateProfileString(AppName, KeyName, temp, IniFileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOL CIniFile::SetDWORD(CString AppName,CString KeyName,unsigned long Data)
|
||||||
|
{
|
||||||
|
CString temp;
|
||||||
|
temp.Format("%u",Data);
|
||||||
|
return WritePrivateProfileString(AppName, KeyName, temp, IniFileName);
|
||||||
|
}
|
32
CcRemote/CcRemote/IniFile.h
Normal file
32
CcRemote/CcRemote/IniFile.h
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
// IniFile.h: interface for the CIniFile class.
|
||||||
|
//
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#if !defined(AFX_INIFILE_H__D5A2B7FC_6022_4EA2_9E54_91C4E7B31B8E__INCLUDED_)
|
||||||
|
#define AFX_INIFILE_H__D5A2B7FC_6022_4EA2_9E54_91C4E7B31B8E__INCLUDED_
|
||||||
|
|
||||||
|
#if _MSC_VER > 1000
|
||||||
|
#pragma once
|
||||||
|
#endif // _MSC_VER > 1000
|
||||||
|
|
||||||
|
class CIniFile
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CIniFile();
|
||||||
|
virtual ~CIniFile();
|
||||||
|
void SetIniFileName(CString FileName){ IniFileName = FileName; }
|
||||||
|
CString GetIniFileName(){ return IniFileName; }
|
||||||
|
|
||||||
|
CString GetString(CString AppName, CString KeyName, CString Default = "");
|
||||||
|
int GetInt(CString AppName, CString KeyName, int Default = 0);
|
||||||
|
unsigned long GetDWORD(CString AppName, CString KeyName, unsigned long Default = 0);
|
||||||
|
|
||||||
|
BOOL SetString(CString AppName, CString KeyName, CString Data);
|
||||||
|
BOOL SetInt(CString AppName, CString KeyName, int Data);
|
||||||
|
BOOL SetDouble(CString AppName, CString KeyName, double Data);
|
||||||
|
BOOL SetDWORD(CString AppName, CString KeyName, unsigned long Data);
|
||||||
|
private:
|
||||||
|
CString IniFileName;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // !defined(AFX_INIFILE_H__D5A2B7FC_6022_4EA2_9E54_91C4E7B31B8E__INCLUDED_)
|
@ -1,24 +1,11 @@
|
|||||||
g:\ccremote\ccremote\ccremote\release\ccremote.ipdb
|
|
||||||
g:\ccremote\ccremote\ccremote\release\ccremote.iobj
|
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.pch
|
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.pch
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\vc141.pdb
|
g:\ccremote\ccremote\ccremote\ccremote\release\vc141.pdb
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\pch.obj
|
g:\ccremote\ccremote\ccremote\ccremote\release\pch.obj
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\truecolortoolbar.obj
|
g:\ccremote\ccremote\ccremote\ccremote\release\truecolortoolbar.obj
|
||||||
|
g:\ccremote\ccremote\ccremote\ccremote\release\inifile.obj
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\cpuusage.obj
|
g:\ccremote\ccremote\ccremote\ccremote\release\cpuusage.obj
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremotedlg.obj
|
g:\ccremote\ccremote\ccremote\ccremote\release\csettingdlg.obj
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.obj
|
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.obj
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\iocpserver.obj
|
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\buffer.obj
|
|
||||||
g:\ccremote\ccremote\ccremote\release\ccremote.exe
|
|
||||||
g:\ccremote\ccremote\ccremote\release\ccremote.pdb
|
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.res
|
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\ccremote.write.1u.tlog
|
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\cl.command.1.tlog
|
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\cl.command.1.tlog
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\cl.read.1.tlog
|
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\cl.read.1.tlog
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\cl.write.1.tlog
|
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\cl.write.1.tlog
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\link.command.1.tlog
|
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\link.read.1.tlog
|
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\link.write.1.tlog
|
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\rc.command.1.tlog
|
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\rc.read.1.tlog
|
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\release\ccremote.tlog\rc.write.1.tlog
|
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
pch.cpp
|
pch.cpp
|
||||||
CcRemote.cpp
|
CcRemote.cpp
|
||||||
CcRemoteDlg.cpp
|
CcRemoteDlg.cpp
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\ccremotedlg.cpp(146): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
|
g:\ccremote\ccremote\ccremote\ccremote\ccremotedlg.cpp(147): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
|
||||||
g:\windows kits\10\include\10.0.17763.0\um\winsock2.h(2219): note: 参见“gethostbyname”的声明
|
g:\windows kits\10\include\10.0.17763.0\um\winsock2.h(2219): note: 参见“gethostbyname”的声明
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\ccremotedlg.cpp(151): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
|
g:\ccremote\ccremote\ccremote\ccremote\ccremotedlg.cpp(152): warning C4996: 'inet_ntoa': Use inet_ntop() or InetNtop() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
|
||||||
g:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明
|
g:\windows kits\10\include\10.0.17763.0\um\winsock2.h(1849): note: 参见“inet_ntoa”的声明
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\ccremotedlg.cpp(291): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据
|
g:\ccremote\ccremote\ccremote\ccremote\ccremotedlg.cpp(292): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\ccremotedlg.cpp(308): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据
|
g:\ccremote\ccremote\ccremote\ccremote\ccremotedlg.cpp(309): warning C4244: “初始化”: 从“double”转换到“int”,可能丢失数据
|
||||||
|
CSettingDlg.cpp
|
||||||
CpuUsage.cpp
|
CpuUsage.cpp
|
||||||
|
IniFile.cpp
|
||||||
|
g:\ccremote\ccremote\ccremote\ccremote\inifile.cpp(33): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
|
||||||
|
g:\windows kits\10\include\10.0.17763.0\ucrt\string.h(90): note: 参见“strcat”的声明
|
||||||
TrueColorToolBar.cpp
|
TrueColorToolBar.cpp
|
||||||
Buffer.cpp
|
Buffer.cpp
|
||||||
IOCPServer.cpp
|
IOCPServer.cpp
|
||||||
@ -18,6 +22,6 @@ g:\ccremote\ccremote\ccremote\ccremote\include\iocpserver.cpp(715): warning C499
|
|||||||
g:\ccremote\ccremote\ccremote\ccremote\include\iocpserver.cpp(764): warning C4244: “初始化”: 从“double”转换到“unsigned long”,可能丢失数据
|
g:\ccremote\ccremote\ccremote\ccremote\include\iocpserver.cpp(764): warning C4244: “初始化”: 从“double”转换到“unsigned long”,可能丢失数据
|
||||||
g:\ccremote\ccremote\ccremote\ccremote\include\iocpserver.cpp(910): warning C4018: “>=”: 有符号/无符号不匹配
|
g:\ccremote\ccremote\ccremote\ccremote\include\iocpserver.cpp(910): warning C4018: “>=”: 有符号/无符号不匹配
|
||||||
正在生成代码
|
正在生成代码
|
||||||
All 391 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
|
All 405 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
|
||||||
已完成代码的生成
|
已完成代码的生成
|
||||||
CcRemote.vcxproj -> G:\CcRemote\CcRemote\CcRemote\Release\CcRemote.exe
|
CcRemote.vcxproj -> G:\CcRemote\CcRemote\CcRemote\Release\CcRemote.exe
|
||||||
|
Binary file not shown.
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
// 添加要在此处预编译的标头
|
// 添加要在此处预编译的标头
|
||||||
#include "framework.h"
|
#include "framework.h"
|
||||||
|
#include <afxcontrolbars.h>
|
||||||
|
|
||||||
#endif //PCH_H
|
#endif //PCH_H
|
||||||
|
|
||||||
|
@ -16,9 +16,12 @@
|
|||||||
#define IDB_BITMAP_MAIN 136
|
#define IDB_BITMAP_MAIN 136
|
||||||
#define IDR_MENU3 137
|
#define IDR_MENU3 137
|
||||||
#define IDR_MENU_NOTIFY 137
|
#define IDR_MENU_NOTIFY 137
|
||||||
|
#define IDD_DIALOG_SETTING 138
|
||||||
#define IDC_ONLINE 1000
|
#define IDC_ONLINE 1000
|
||||||
#define IDC_LIST2 1001
|
#define IDC_LIST2 1001
|
||||||
#define IDC_MESSAGE 1001
|
#define IDC_MESSAGE 1001
|
||||||
|
#define IDC_EDIT_PORT 1002
|
||||||
|
#define IDC_EDIT_MAX 1003
|
||||||
#define ID_ONLINE_32771 32771
|
#define ID_ONLINE_32771 32771
|
||||||
#define ID_ONLINE_32772 32772
|
#define ID_ONLINE_32772 32772
|
||||||
#define ID_ONLINE_32773 32773
|
#define ID_ONLINE_32773 32773
|
||||||
@ -63,14 +66,15 @@
|
|||||||
#define ID_SYSTEMMENU_32813 32813
|
#define ID_SYSTEMMENU_32813 32813
|
||||||
#define IDM_NOTIFY_SHOW 32814
|
#define IDM_NOTIFY_SHOW 32814
|
||||||
#define IDM_NOTIFY_CLOSE 32815
|
#define IDM_NOTIFY_CLOSE 32815
|
||||||
|
#define IDM_BUTTON123456 32816
|
||||||
|
|
||||||
// Next default values for new objects
|
// Next default values for new objects
|
||||||
//
|
//
|
||||||
#ifdef APSTUDIO_INVOKED
|
#ifdef APSTUDIO_INVOKED
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 138
|
#define _APS_NEXT_RESOURCE_VALUE 140
|
||||||
#define _APS_NEXT_COMMAND_VALUE 32816
|
#define _APS_NEXT_COMMAND_VALUE 32817
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1002
|
#define _APS_NEXT_CONTROL_VALUE 1003
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Binary file not shown.
3
CcRemote/Release/CcRemote.ini
Normal file
3
CcRemote/Release/CcRemote.ini
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[Settings]
|
||||||
|
ListenPort=2001
|
||||||
|
MaxConnection=9999
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user