📄 remoteserver.cpp
字号:
// 这是使用应用程序向导生成的 VC++
// 应用程序项目的主项目文件。
#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
using namespace System::Runtime::Remoting;
using namespace System::Runtime::Remoting::Channels;
using namespace System::Runtime::Remoting::Channels::Tcp;
using namespace RemoteObject;
int _tmain()
{
// TODO: 请用您自己的代码替换下面的示例代码。
TcpChannel *Channel=new TcpChannel(8888);
ChannelServices::RegisterChannel(Channel);
RemotingConfiguration::RegisterWellKnownServiceType(Type::GetType("RemoteObject.RemoteObjClass,RemoteObject"),S"Test",WellKnownObjectMode::SingleCall);
Console::WriteLine(S"Server is running...");
Console::ReadLine();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -