把下面的C#代码转C++ protected void InitializeNamePipe(string name) { this.m_named_pipe = new NamedPipeServerStream(name, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.WriteThrough); this.m_named_pipe.WaitForConnection(); }
void InitializeNamePipe(std::string name) { m_named_pipe = new NamedPipeServerStream(name, PipeDirection::InOut, 1, PipeTransmissionMode::Byte, PipeOptions::WriteThrough); m_named_pipe->WaitForConnection(); }
原文地址: https://www.cveoy.top/t/topic/vpd 著作权归作者所有。请勿转载和采集!