如题。
解决方案 »
- 把图标加在按钮控件上
- D3D和OpenGL 在开发方面各自有什么优缺点
- VC(MFC)调用LUA的问题
- 我在Cview类中create了一个CButton
- 各位兄弟,你们去年面试,今年开年去华为(深圳)报到的本科生,2003年毕业的,你们的基本工资是多少啊?
- stl中的配接器mem_fun的问题
- 如何在VC里面屏蔽EIDT控件的复制,剪切功能啊??
- VC里有个Slider控件怎么用呀?
- 搞笑:哈哈,刚才,我们处领导来我们办公室检查工作,我正在看VC原程序,然后。。。
- 在XP修改程序图标 在win7没有效果
- 请教:字符数组怎么与CString行的变量进行比较?
- 哪有基于MFC的Windows编程入门书籍
"This is a test"怎么做??
CFile theSrcFile, theDstFile;
theSrcFile.Open("d:\\aaa.exe",CFile::modeRead|CFile::typeBinary);
theDstFile.Open("d:\\aaa.txt",CFile::modeWrite|CFile::typeBinary);
BYTE pBuff;
UINT Sent=0;
UINT temp=0;
char theResult[4]={0}; //一个字节转化成 10 进制顶多为 255, 不会超过 3 位.
CString str="";
while(Sent<theSrcFile.GetFileSize( ))
{ temp=0;
temp=theFile.Read(pBuff, 1);
str.Format("%d", pBuff);
memset(theResult,0,4);
strcpy(theResult, str.operator lpcstr( ) ) //好像是这个成员涵数吧
theDstFile.Write(theResult+" ", strlen(theResult+" "));
Sent+=temp;}theSrcFile.Close(); theDstFile,Close();
AfxMessageBox("文件转换完毕!",MB_OK+MB_ICONINFORMATION);