
VC++知识
文章平均质量分 67
reallyioio
这个作者很懒,什么都没留下…
展开
-
vc6.0中使用stl::string在多处理器PC中可能引发的问题
由于vc6.0中关于stl的实现并不好,存在很多bug,在实际工作中,我发现在多处理器的pc中运行时,会出现bug,STL std::string class causes crashes and memory corruption on multi-processor machines转自 http://support.microsoft.com/kb/813810转载 2008-08-07 10:42:00 · 360 阅读 · 0 评论 -
WMIC入门教程
Windows Management Instrumentation command-line ... ...原创 2011-04-25 11:32:00 · 538 阅读 · 0 评论 -
"The application has failed to start because its side-by-side configuration is incorrect."
"The application has failed to start because its side-by-side configuration is incorrect." error on Windows Server 2008 R2 Standard OS.原创 2011-04-14 18:20:00 · 6128 阅读 · 0 评论 -
进程间通信(一) 共享内存
进程间通信(一) 共享内存原创 2010-12-29 11:28:00 · 291 阅读 · 0 评论 -
重载operator new与operator delete
重载operator new与operator delete 需要注意的地方 ... ...转载 2010-07-28 16:55:00 · 339 阅读 · 0 评论 -
一个简单线程池的实现
本文在C++下实现了一个简单的线程池例子原创 2010-07-27 11:40:00 · 406 阅读 · 0 评论 -
C++应用程序性能优化 - 内存池
本文探讨了内存池应用原理,非常好,感谢作者。。。。。。转载 2010-07-13 18:18:00 · 275 阅读 · 0 评论 -
用C++实现HttpUtility.UrlEncode和HttpUtility.UrlDecode
首先,需要先了解HttpUtility.UrlEncode是怎样编码的:1.数字和字母不变。2.空格变为"+"号。3.其他被编码成"%"加上他们的ascii的十六进制,规律是这样的 比如汉字“啊”字 Ascii的十六进制是B0A1,则编码后为"%B0%A1"(每个字节前加个%)。 /*******************************************原创 2009-05-22 16:20:00 · 1184 阅读 · 0 评论 -
Manifest 的问题
问题描述:大部分的vs.net 2005的用户在新建“win32项目-windows应用程序”的时候,新建的工程都通不过去,出现如下提示: Solution to “MSVCR80D.dll not found”“没有找到MSVCR80D.dll,因此这个应用程序未能启动。重新安装应用程序可能会修复此问题。”由于vs.net 2005 采用了一种新的DLL方案,搞成一个exe还要配有一个man转载 2008-12-23 09:54:00 · 346 阅读 · 0 评论 -
Assembly Manifest 通俗简易手册(转)
感觉这篇文章写的挺好的,和前一篇结合起来看,对于manifest就能够很快明白了。转载自:http://hi.baidu.com/codinglife/blog/item/ea9acceab2f833d7d539c90e.html Assembly Manifest 通俗简易手册恩,为了大家都能很方便的理解,我将尽量简单通俗地进行描述。[现象]对这个问题的研究转载 2008-12-23 14:31:00 · 397 阅读 · 0 评论 -
VC++连接SQL Server2005 数据库
以前一直使用sql server 200数据库, 这次琢磨着用个高级点的吧,sql server 2005, 麻烦也就一起来了,还真是高级,头都晕了. 以前使用sql server 2000的时候, 当时用于连接数据库的代码如下: strConnection.Format("driver={SQL Server};Server=xx.xx.xx.xx;DATABASE=mydata原创 2009-02-19 19:19:00 · 7084 阅读 · 7 评论 -
在主线程中慎用WaitForSingleObject (WaitForMultipleObjects)
原文转自 http://www.cnblogs.com/shootingstars/archive/2004/07/15/24602.aspx下面的代码我调试了将近一个星期,你能够看出什么地方出了问题吗?线程函数:DWORD WINAPI ThreadProc( while(!bTerminate) { // 从一个链表中读取信息并且插入到CListCtrl中转载 2008-10-27 16:41:00 · 278 阅读 · 0 评论 -
CListCtrl如何识别所选择的Item
在一个CListCtrl控件中,当单击某项Item时,如何识别所选择的Item的索引呢?1.响应 LVN_ITEMCHANGED消息2.书写如下代码void CDlg::OnItemchangedListCmpcpy(NMHDR* pNMHDR, LRESULT* pResult) { NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMH原创 2008-10-09 18:46:00 · 533 阅读 · 0 评论 -
关于函数指针
函数指针在C、C++中的应用是有所区别的,如int Add(int x1,int x2){ return x1+x2;} int main(){ int (*p)(int,int); p=Add; int nRet = (*p)(1,2); //nRet = 3} 在使用class的函数指针方面,应有所区别,如class原创 2008-10-24 10:15:00 · 186 阅读 · 0 评论 -
通过SHBrowseForFolder来打开“选择路径对话框”
如何打开选择路径对话框?现在就用一些代码来说明,如下。 TCHAR szPath[MAX_PATH]; BROWSEINFO br; ITEMIDLIST* pItem; br.hwndOwner = this->GetSafeHwnd(); br.pidlRoot = 0; br.pszDisplayName = 0; br.lpszTitle = "选择路径"; br.ulFla原创 2008-09-18 20:26:00 · 1992 阅读 · 0 评论 -
CTimeSpan::GetDays()一个需要注意的地方
在编程的过程中要经常使用CTime和CTimeSpan类,尤其是利用CTimeSpan来求时间差。如:CTime tmBegin(1996,2,28,0,0,0);CTime tmEnd(1996,3,11,0,0,0);CTimeSpan tmSpan = tmEnd - tmBegin;int nDays = tmSpan.GetDays();int nHours= tm原创 2008-08-20 18:29:00 · 2005 阅读 · 0 评论 -
DLL的灾难---DEBUG与RELEASE版本不能交叉调用
让我们先看一段引文,再来进行心灵的探索:If you have an EXE and a DLL.When your exe APP was built Debug Mode, your Dll must be Debug mode. When your exe APP was built Release Mode, your Dll must be Release mode. If exe is转载 2008-08-07 10:30:00 · 2373 阅读 · 1 评论 -
简单操作Windows Service
本文为CServiceControl类代码,用于简单操作windows service管理 ... ...原创 2011-04-27 14:09:00 · 452 阅读 · 0 评论