-
MFC进程之间的单管道传输
资源描述
进程之间的单管道数据传输
操作平台:win10+vs2013 pro
运行结果:
1、字符与宽字符之间的转换
//宽字符转字符
void TcharToChar(const TCHAR * tchar, char * _char)
{
int iLength;
//获取字节长度
iLength = WideCharToMultiByte(CP_ACP, 0, tchar, -1, NULL, 0, NULL, NULL);
//将tchar值赋给_char
WideCharToMultiByte(CP_ACP, 0, tchar, -1, _char, iLength, NULL, NULL);
}
//字符转宽字符
void CharToTchar(const char * _char, TCHAR * tchar)
{
int iLength;
iLength = MultiByteToWideChar(CP_ACP, 0, _char, strlen(_char) + 1, NULL, 0);
MultiByteToWideChar(CP_ACP, 0, _char, strlen(_char) + 1, tchar, iLength);
}
2、创建进程及单管道传输
void CDemoDlg::OnBnClickedButton1()
{
// TODO: 在此添加控件通知处理程序代码
//管道相关
HANDLE hPWrite, hPRea
- 2022-03-06 10:20:16下载
- 积分:1
-
我用VB6.0做的一个网页浏览器,可以记录浏览历史以及添加收藏夹、管理收藏集,设置浏览器的界面语言等等,是本人深入研究WebBrowser的结晶,希望能对大家有...
我用VB6.0做的一个网页浏览器,可以记录浏览历史以及添加收藏夹、管理收藏集,设置浏览器的界面语言等等,是本人深入研究WebBrowser的结晶,希望能对大家有所帮助。-I use VB6.0 to do a web browser, can record the browsing history and favorites to add, manage collections, set your browser" s interface language and so on, are my in-depth study of the crystallization of WebBrowser, hoping to be helpful to everyone.
- 2023-08-04 08:15:06下载
- 积分:1
-
一组windows界面编程控件,包括按钮,编辑框,列表等等的源代码。...
一组windows界面编程控件,包括按钮,编辑框,列表等等的源代码。-A group of windows interface programming controls, including buttons, edit boxes, list the source code and so on.
- 2023-08-15 03:35:03下载
- 积分:1
-
VC为对话框添加最小化按钮和提示条
VC为对话框添加最小化按钮和提示条-VC added to the smallest box of buttons and a reminder of
- 2023-08-11 05:35:04下载
- 积分:1
-
我自己编的程,是关于边缘提取的,有些不完善的地方多提意见。...
我自己编的程,是关于边缘提取的,有些不完善的地方多提意见。-my own series of the trip is on the verge of extracting some flaws in their criticism.
- 2022-03-23 03:10:44下载
- 积分:1
-
Hw_Monitor
Get HW information. ex: CPU information, the is open soucre code. using C# to develop. You can refer to the source code to get more informations.
- 2023-02-10 05:15:03下载
- 积分:1
-
这是一个类似机器鱼的游戏,模拟鱼的游动,自适应地改变方向
这是一个类似机器鱼的游戏,模拟鱼的游动,自适应地改变方向-This is a machine similar to the game fish, the fish swimming simulation, adaptive to change direction
- 2022-02-15 22:04:55下载
- 积分:1
-
Implementation prepared by VC interface status bar and progress bar shows the pr...
用VC编写的实现界面状态栏进度条显示及进度控制的代码-Implementation prepared by VC interface status bar and progress bar shows the progress of the control code
- 2022-05-13 05:21:27下载
- 积分:1
-
示波器的演示,动态曲线的绘制和界面编程功能的实现。
示波器的演示,动态曲线的绘制和界面编程功能的实现。-oscilloscope demo, dynamic curve mapping and programming interface functions to achieve.
- 2022-09-11 23:15:03下载
- 积分:1
-
vc气泡状提示编写示例,当鼠标指针放在输入框时,显示提示气泡...
vc气泡状提示编写示例,当鼠标指针放在输入框时,显示提示气泡-vc prompted the preparation of bubble-shaped sample, when the mouse pointer on the input box, the display prompts the bubble
- 2022-03-16 02:26:05下载
- 积分:1