自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (3)
  • 收藏
  • 关注

原创 Qt and environment variables passed to main

On ubuntu I can use the environment variables passed to main as the following, but it does not work on Windows since QT does not pass env in qtmain_win.cpp.int main(int argc, char *argv[], char* env[]){    //C:/Qt/4.6.3/src/winmain/qtmain_win.cpp does not

2010-11-29 18:29:00 571

原创 ubuntu

KPackageKit reported 29 blocked updates, but the following command fixed the issue: sudo apt-get update && sudo apt-get dist-upgrade The above command is from this post - http://forum.kde.org/viewto

2010-11-26 14:24:00 304

原创 C++使用WMI的感想

<br />C++使用WMI比其他语言复杂的多,文档很少,而且还可能是错误的。曾经看到MSDN上有一篇介绍WMI访问远程机器信息的文章就有错误,少做了一个CoSetProxyBlanket的操作,就算把它的代码原封不动拷贝出来,也不工作。由此可知,一个掌握许多理论知识的工程师也是需要有相应的实践,很多人觉得自己懂多线程,tcp, database, 不需要对某个具体语言/操作系统熟悉就可以很快学起来,往往是忘记了在自己熟悉领域遇到难题的经历。一个精通C++的人肯定不能预知跨线程共享COM对象的复杂性。

2010-11-26 11:43:00 1261

原创 Build boost 1.45 with VC++ 2008 on Windows XP and gcc on Ubuntu

On Windows, add the following to G:/src/boost_1_45_0/tools/build/v2/user-config.jamusing qt : C://Qt//4.6.3 ;##########################################################using python    : 3.1                         # Version    : C://Python31//python.exe    

2010-11-22 17:17:00 696

原创 record start/stop time in batch file

<br /><br />When executing a time consuming task, I am always interested in knowing the time it takes. Here is a way.<br /> <br />set temp_time=%TIME%<br />pause<br />@echo start at %temp_time%<br />@echo stop at %TIME%

2010-11-22 10:59:00 434

原创 Use link file to install eclipse plugin

<br />User can put a link file in eclipse dropins folder, so that it is easy to share plugins between different copies of eclipse, like I am using CDT and WTP. Here is an example link file:<br />create a file /d4/ux/j2ee/eclipse/dropins/sqlexplorer.link  w

2010-11-20 20:00:00 603

原创 Derby embedded database

<br />Driver class name is org.apache.derby.jdbc.EmbeddedDriver.<br />Need to put derby.jar in class path, which can be found at glassfishv3/javadb/lib/derby.jar.<br />Database URL is jdbc:derby:/d4/workspace/jboss/getimg/helloDB;create=true

2010-11-20 17:52:00 518

原创 A simple QT application

log4cpp only provides VC++ 6.0 project files, so I have to convert those project files to VC++ 2008 and also make some changes in order to build them successfully. Here is the steps. unzip to D:/opensource/log4cpp-1.0Open D:/opensource/log4cpp-1.0/msvc6/ms

2010-11-18 22:59:00 370

原创 Build log4cpp with VC++ 2008

<br />log4cpp only provides VC++ 6.0 project files, so I have to convert those project files to VC++ 2008 and also make some changes in order to build them successfully. Here is the steps.<br />unzip to D:/opensource/log4cpp-1.0<br />Open D:/opensource/log

2010-11-17 23:59:00 737

原创 Win32_OperatingSystem.Win32Shutdown is not reliable

The same software running in Administrator mode on Windows XP on the same machine, some times it can shutdown successfully, some times it failed. It seems that if user connected to other computer with different credentials, the operation may fail.

2010-11-08 23:47:00 723

convert jpg/bmp to dicom image

Convert jpg/bitmap file to DICOM file using dicomlib and CxImage libraries within 80 lines of code. The converted dicom file can be displayed by ezDicom.exe.

2011-03-25

VC++ Use WMI example

一个VC++ 2010开发的小工具,可以生成process dump 文件,执行WMI查询,调用WMI 方法(StdRegProv.GetDWORDValue和 Win32_OperatingSystem.Reboot 和Win32Shutdown方法)。

2010-11-15

Windbg introduction

Windbg使用简介,包括如何分析dump文件,如何设置断点,查看内存,变量,调用堆栈和函数的参数

2010-11-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除