前进的道路不是一帆风顺的,要随时迎接挑战,敢于战胜困难!

坚持一下,找人聊聊天,释放一些压力!

 

2008年12月1日

VC6.0关于error C2110: cannot add two pointers

摘要: 使用CString::Format() 阅读全文

posted @ 2008-12-01 10:24 山径山精 阅读(956) 评论(0) 推荐(0) 编辑

2008年11月27日

VC6.0--IsDirectory和IsDots的什么区别

摘要: if(finder.IsDirectory() && !finder.IsDots()) IsDirectory表明这是一个目录,isDots表明这个是.或者..而这两个东西虽然是目录,但是一个表明这个目录本身,一个代表上层目录(但是 根目录下面..也是本身)。所以这个表明的意思是finder是一个目录并且不是这个目录本身或者上层目录。 IsDirectory判断是否为目录,IsDots判断是否为... 阅读全文

posted @ 2008-11-27 15:14 山径山精 阅读(775) 评论(0) 推荐(0) 编辑

vc6.0获取磁盘的剩余空间

该文被密码保护。 阅读全文

posted @ 2008-11-27 09:50 山径山精 阅读(18) 评论(0) 推荐(0) 编辑

2008年11月26日

VC6.0使用向导获取路径

摘要: void CDlgClientParam::OnBtnSetsavepath() { UpdateData(); LPCTSTR lpszTitle = _T( "Select the root folder for the browse dialog:" ); UINT uFlags = BIF_RETURNONLYFSDIRS | BIF_USENE... 阅读全文

posted @ 2008-11-26 17:19 山径山精 阅读(255) 评论(0) 推荐(0) 编辑

VC返回文件所在的路径

摘要: //返回文件所在的路径 void GetPath(CString& Des,char* src) { CString TmpStr = src; int Location = TmpStr.ReverseFind('""'); Des = TmpStr.Left(Location); } 阅读全文

posted @ 2008-11-26 17:00 山径山精 阅读(188) 评论(0) 推荐(0) 编辑

读取配置文件(.ini)

摘要: 配置文件中经常用到ini文件,在VC中其函数分别为: 写入.ini文件:bool WritePrivateProfileString(LPCTSTR lpAppName,LPCTSTR lpKeyName,LPCTSTR lpString,LPCTSTR lpFileName); 读 取.ini文件:DWORD GetPrivateProfileString(LPCTSTR lpAppName... 阅读全文

posted @ 2008-11-26 16:36 山径山精 阅读(309) 评论(0) 推荐(0) 编辑

2008年11月25日

VC6.0读取带属性的xml文件并逐行显示

该文被密码保护。 阅读全文

posted @ 2008-11-25 17:07 山径山精 阅读(27) 评论(0) 推荐(0) 编辑

关于:error C2653: 'MSXML2' : is not a class or namespace name

摘要: 加入:#import "C:"WINDOWS"System32"msxml3.dll" 阅读全文

posted @ 2008-11-25 11:11 山径山精 阅读(1694) 评论(1) 推荐(0) 编辑

vc6.0读取系统时间并与自己通过其他方式获取的时间比较

摘要: CTime time=CTime::GetCurrentTime(); CString m_strTime=time.Format("%Y-%m-%d %H:%M:%S"); CString m_strDefine=("3007-11-25 10:16:00"); if(m_strTime>=m_strDefine) { AfxMessage... 阅读全文

posted @ 2008-11-25 10:33 山径山精 阅读(1128) 评论(0) 推荐(0) 编辑

2008年11月24日

VC6.0给ListView(CListCtrl)添加数据

摘要: CListCtrl* theCtrl = GetListCtrl(); theCtrl.InsertColumn(0,"姓名",LVCFMT_CENTER,50); theCtrl.InsertColumn(0,"班级",LVCFMT_CENTER,50); 如何将 “张三”加入到姓名列中;如何将“初三四班”加入到班级列中? theCtrl.InsertItem(0, "张三"); 第... 阅读全文

posted @ 2008-11-24 21:13 山径山精 阅读(1628) 评论(0) 推荐(0) 编辑

2008年11月22日

关于error LNK2001: unresolved external symbol __imp__gethostbyaddr@12

摘要: 题目:关于error LNK2001: unresolved external symbol __imp__gethostbyaddr@12 问题描述:Deleting intermediate files and output files for project 'WSAChat - Win32 Debug'. --------------------Configuration: WSAChat... 阅读全文

posted @ 2008-11-22 22:10 山径山精 阅读(2542) 评论(0) 推荐(0) 编辑

关于error LNK2001: unresolved external symbol __imp__gethostbyaddr@12

摘要: 问题描述: Deleting intermediate files and output files for project 'WSAChat - Win32 Debug'. --------------------Configuration: WSAChat - Win32 Debug-------------------- Compiling resources... Compiling...... 阅读全文

posted @ 2008-11-22 20:55 山径山精 阅读(1200) 评论(0) 推荐(0) 编辑

2008年11月21日

CompareNoCase

摘要: CString::CompareNoCaseint CompareNoCase( LPCTSTR lpsz ) const;返回值:如果字符串是一样的(不区分大小写)则返回零值;如果CString对象小于lpsz(不区分大小写)则返回值小于0;如果CString对象大于lpsz(不区分大小写)则返回值大于0。说明:此成员函数通过使用通用文本函数_tcsicmp来比较这个CString对象和另一个字... 阅读全文

posted @ 2008-11-21 16:40 山径山精 阅读(5830) 评论(4) 推荐(1) 编辑

关于: error LNK2005: __c_exit already defined in libcmt.lib(crt0dat.obj)

摘要: VC6.0关于错误:error LNK2005: _exit already defined in libcmt.lib(crt0dat.obj) 错误描述:--------------------Configuration: FileReveiverV2 - Win32 Release-------------------- Compiling resources... Compiling..... 阅读全文

posted @ 2008-11-21 13:21 山径山精 阅读(4433) 评论(1) 推荐(0) 编辑

关于:fatal error C1083: Cannot open source file: 'D:\DVBmj\FileReveiverTV2\XMLDom.cpp': No such file or directory

摘要: fatal error C1083: Cannot open source file: 'D:"DVBmj"FileReveiverTV2"XMLDom.cpp': No such file or directory Error executing cl.exe. 问题描述:--------------------Configuration: FileReveiverV2 - Win32 Rel... 阅读全文

posted @ 2008-11-21 13:20 山径山精 阅读(1800) 评论(0) 推荐(0) 编辑

导航