LPBYTE CString_To_LPBYTE(CString str)
{
LPBYTE lpb=new BYTE[str.GetLength()+1];
<str.GetLength(); i++)lpb[i]=str[i];>
for(int i=0; ibr> lpb[str.GetLength()]=0;
return lpb;
}
{
LPBYTE lpb=new BYTE[str.GetLength()+1];
<str.GetLength(); i++)lpb[i]=str[i];>
for(int i=0; ibr> lpb[str.GetLength()]=0;
return lpb;
}
解决方案 »
- 分块导入1.2G图像时GlobalAlloc()出错
- 怎么样把vc编写的网络客户端把数据发给jsp网页实现实时显示啊??
- 帮忙,测试这个注册com的代码对吗
- 文件监控怎样实现?
- 关于窗口焦点的问题。
- 在远程线程中如何创建新的线程?以及......
- 三维图像打印
- 使用CStatic *pRight=(CStatic *)GetDlgItem(IDC_PICEND),却出现以下错误,何故?
- 对话框取view指针问题,在线等.
- 高手们帮帮忙,为什么我用GetPixel出这种怪事!◎!
- 急:小问题,定给分:有关MFC使用第三方DLL的问题
- 熟悉使用COleDispatchDriver类作COM 客户的朋友请进
LPBYTE name=new BYTE[m_dustbin.GetLength()+1];
//字符串必须以0结尾,所以在m_dustbin字符串后面加一个0,所以长度要+1
for(int i=0;i<m_dustbin.GetLength();i++)
name[i]=m_dustbin[i];
name[i]=0;//最后一个字节是0;