2012年05月21日 星期一 15:08
定义: class B { private: B() { } friend class A; }; 将导致B无法被除A以外的其它任何class直接继承以后实例化,也就是说,在上面这个定义的基础上,如果你在定义: |
2012年05月04日 星期五 17:20
2012年05月04日 星期五 16:45
2012年05月04日 星期五 16:44
2012年05月04日 星期五 16:07
【Nand flash的一些典型(typical)特性】 1.页擦除时间是200us,有些慢的有800us。 2.块擦除时间是1.5ms. 3.页数据读 |
2011年09月27日 星期二 17:21


Vim 替换命令汇总 |
2011年08月25日 星期四 16:54
Limitations of _AFXEXT
You can use the _AFXEXT pre-processor symbol for your extension DLLs as long as you do not have multiple layers of extension DLLs. If you have extension DLLs that call or derive from classes in your own extension DLLs, which then derive from the MFC classes, you must use your own preprocessor symbol to avoid ambiguity.
The problem is that in Win32, you must explicitly declare any data as __declspec(dllexport) if it is to be expor |
2011年08月25日 星期四 16:53
how you can use the MFCxx.DLL and MFCxxD.DLL (where x is the MFC version number) shared dynamic link libraries with MFC applications and extension DLLs. For more information about regular DLLs, see Using MFC as Part of a DLL.
This technical note covers three aspects of DLLs. The last two are for the more advanced users:
|
2011年08月18日 星期四 20:43
Many CRT functions have been deprecated in favor of newer, security-enhanced versions (for example, strcpy_s is the more secure replacement for strcpy). The CRT provides template overloads to help ease the transition to the more secure variants.
For example, this code generates a warning because strcpy is deprecated:
char szBuf[10];
strcpy(szBuf, "test"); // warning: deprecated
|
2011年08月01日 星期一 15:13
在导出类中如果含有自定义的类型或者stl时,编译会报一堆的warning c4251下面是解决办法
|
I always try to get rid of compiler warnings. It just seems like a good thing to do. Warning-free code makes me happy. But some warnings just don't want to go away, and this is one of them. I use STL frequently, and my own templates from time to time, and every time I try to turn some code with templates | |
2011年07月21日 星期四 17:30
和在IDE中编译相比,命令行模式编译速度更快,并可以避免被IDE产生的一些附加信息所干扰。本文将介绍微软C/C++编译器命令行模式设定和用法。
1、设置环境变量:
PATH=C:\Program Files\Microsoft Visual Studio 8\VC\bin
INCLUDE=C:\Program Files\Microsoft Visual Studio 8\VC\include
LIB=C:\Program Files\Microsoft Visual Studio 8\VC\lib
如果提示找不到mspdb80.dll文件,则从C:\Program Files\Microsoft Visual Studio 8\Common7\IDE下拷贝“msobj80.dll,mspdb80.dll,m |
2011年07月06日 星期三 13:59
PC-Lint是一款C/C++软件代码静态分析工具,不仅可以检查一般的语法错误,还可以检查潜在的错误,比如数组访问越界、内存泄漏、使用未初始化变量、使用空指针等。在单元测试前使用PC-Lint来检查代码,可以提前发现程序中的潜在的错误,提高代码 的质量。 本文主要从两个方面介绍PC-lint,第一部分是在与不同的工具安装集成,第二部分是PC-lint的使用方法。
1. 安装PC-lint及如何集成到VC6.0和Source Insight
|
2011年07月06日 星期三 13:58
近来由于项目的需要,本来想使用unstand c++或者C++ test来检查我们既有代码中函数申明与使用不一致的错误,因为sv项目是用纯C来写的,所以,编译时编译器看到.c后缀自动使用c编译器进行编译,这样由于c编译 |
2010年12月13日 星期一 11:31
前不久花了2300大银败了个HD-USB12协议分析仪(肉痛…)。不过还蛮好用,以后做USB固件开发就方便多了。
看到21ic坛子里arthur0561大虾发了一系列USB协议入门总结的文章,向他(OR她?)表示一下敬意。我也准备用手头这台协议分析仪以实例和图解的方式描述一下USB协议的相关知识,希望对初学USB的童鞋有些帮 |
2010年03月30日 星期二 22:34
Total Commander支持直接调用CMD命令窗口,并且设置路径为当前激活窗口,快捷方式为Ctrl+G。
PowerCMD 是一款方便的命令行工具,支持多标签、自动保存、高亮搜索、行号显示、折叠等功能。
下面介绍如何在Total Commander中调用PowerCMD。
Step 1:修改用户命令,
在 Total Commander 的 usercmd.ini 中添加如下内容
[em_PowerCMD]
cmd=I:\Program Files\PowerCmd\PowerCmd.exe
path=I:\Program Files\PowerCmd\
param= /P "%P"
其中cmd是PowerCm |
|
|
lingyin55
男, 岁
广东 广州
|