Wednesday, February 28, 2007
咨询了一下:系统不稳定,不稳定还让客户用?
Saturday, February 10, 2007
水仙花开了
Vista issues for SetCurrentDirectory
The search path can be altered using the SetDllDirectory function. This solution is recommended instead of using SetCurrentDirectory or hard-coding the full path to the DLL.
Client | Requires Windows Vista or Windows XP SP1. |
---|---|
Server | Requires Windows Server "Longhorn" or Windows Server 2003. |
Header | Declared in Winbase.h; include Windows.h. |
Library | Use Kernel32.lib. |
DLL | Requires Kernel32.dll. |
Unicode | Implemented as SetDllDirectoryW (Unicode) and SetDllDirectoryA (ANSI). |
Wednesday, February 07, 2007
推荐2个小工具
下载:http://keepass.info/
Tuesday, February 06, 2007
一个很有用的宏-VC TIPS
VC's #pragma message
Ever tried to add the line number of a compile time message to your source code?
#pragma message(__FILE__ __LINE__ ": important part to be changed!!"
Won't work. Anyway, with some tricks you can do exactly this. The nice thing is that you will never ever again need to use "Find" to locate a particular message in your source code. Just double click the line with your message in the output window and VC's editor will jump to that location.
Here is what you need to add to your source code to make this work:
#define __STR2__(x) #x
#define __STR1__(x) __STR2__(x)
#define __LOC__ __FILE__ "("__STR1__(__LINE__)") : Warning Msg: "
#define __LOC2__ __FILE__ "("__STR1__(__LINE__)") : "
Now you can use the #pragma message to add the location of the message:
#pragma message(__LOC__ "important part to be changed")
#pragma message(__LOC2__ "error C9901: wish that error would exist")
The preceding pragmas will yield the following output from the compiler (preprocessor)
C:\code\pragma\test.cpp(33) : Warning Msg: important part to be changed
c:\code\pragma\test.cpp(34) : error C9901: wish that error would exist
Have fun with your new #pragma's...
Elliot Liu
龙芯与国芯
"江苏龙梦炮轰四川国芯:要做中国微软是闹剧"
详见:http://news.csdn.net/n/20070206/101226.html
当初还听龙芯公司的一些人说,他们(国芯)的整个系统大小只有20K。
20K的系统,你能想象是什么东西?
据说20k的系统还是个OS 哦,信不信由你,信则有,不信则无?阿米托付
Elliot Liu