-
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
-
银行存储系统的实现,我是用vfp编写的,包含开户,提款,存款,销户....
银行存储系统的实现,我是用vfp编写的,包含开户,提款,存款,销户.-banks storage systems realized, I was prepared Probe, including the opening of accounts, withdrawals, deposits, sales households.
- 2022-02-11 22:42:33下载
- 积分:1
-
用链表实现在列表框中选取级联省份、县市的VC++代码
用链表实现在列表框中选取级联省份、县市的VC++代码-Implementation using linked list in the list box to select the Cascade provinces, cities and counties of the VC++ code
- 2022-08-14 06:13:02下载
- 积分:1
-
很好的滚动条程序
很好的滚动条程序-good of the rolling process
- 2022-02-26 08:50:16下载
- 积分:1
-
用Webbrowser实现很漂亮的界面效果。
用Webbrowser实现很漂亮的界面效果。-Make a beautiful interface with a webbrowser control
- 2022-03-18 03:38:10下载
- 积分:1
-
回文数就是从高位往低位读,和从低位往高位读是相同的,例如:131,1221等,此程序是寻找m,要求m,m*m,m*m*m,这三个值都是回文数。...
回文数就是从高位往低位读,和从低位往高位读是相同的,例如:131,1221等,此程序是寻找m,要求m,m*m,m*m*m,这三个值都是回文数。-Palindrome number is read from a high level to low and from low to high time is the same as, for example: 131,1221 and so on, this procedure is to find m, the requirements m, m* m, m* m* m, the three values palindrome are few.
- 2023-05-21 02:30:03下载
- 积分:1
-
the main described in VC 6.0 on the operation of the dialog, the dialog with the...
这个主要讲述了在VC++6.0下对对话框的操作,是自己的对话框有特色。-the main described in VC 6.0 on the operation of the dialog, the dialog with their own characteristics.
- 2023-01-24 04:00:04下载
- 积分:1
-
很酷的类似OutLook98的Folder选择的控件(OICQ里也有)
很酷的类似OutLook98的Folder选择的控件(OICQ里也有)-Very cool contorl which is like the OutLook98 s folder
- 2022-08-06 08:45:19下载
- 积分:1
-
VB6.0软件编写了机械原理课程中常用的模拟软件,用于课程上的教学或者课程设计
利用VB6.0软件编写了机械原理课程中常用的模拟软件,用于课程上的教学或者课程设计。 主要机构有四连杆机构,凸轮机构,直齿圆柱齿轮啮合机构
- 2022-03-05 20:11:13下载
- 积分:1
-
Graphics Gems I
图形图像经典
Graphics Gems I
图形图像经典-Graphics Gems I
- 2022-03-02 14:20:28下载
- 积分:1