用Doxygen自动生成C++程序文档
作者:淡月清风 日期:2010-01-29
Doxygen 是一个类似 JavaDoc,NDoc 的开源文档生成工具,它可以根据程序中的注释,自动生成html格式的文档。
使用方法很简单:
1.在自己的程序中根据Doxygen要求的格式书写注释。
2.用doxywizard.exe生成Doxygen的配置文件“Doxyfile”,点“Start”按钮即可生成文档。
参考网站:
http://www.doxygen.org/
http://zh.wikipedia.org/wiki/Doxygen
用keybd_event模拟键盘按键
作者:淡月清风 日期:2010-01-28
void keybd_event(
// virtual-key code
BYTE bVk,
// This parameter is not used,设置为0
BYTE bScan,
// 0为KeyDown,KEYEVENTF_KEYUP为KeyUp
DWORD dwFlags,
// additional keystroke data,set to 0
ULONG_PTR dwExtraInfo );
//该函数产生一次击键事件。
//例子:模拟按下'N'键
keybd_event('N', 0, 0, 0);
Sleep(10);
keybd_event('N', 0, KEYEVENTF_KEYUP, 0);
把Google翻译网页放到桌面上
作者:淡月清风 日期:2010-01-28
<html>
<head>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="GoogleTranslateApp"
BORDER="dialog"
BORDERSTYLE="raised"
CAPTION="yes"
ICON=""
SCROLL="no"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
INNERBORDER="no"
SYSMENU="yes"
VERSION="1.0"/>
<script language="javascript">
<!--
function LoadWindow()
{
window.resizeTo(700,600);
/*
window.IFrameGoogle.document.body.bgColor="#D4D0C8";
window.IFrameGoogle.document.body.onselectstart=function(){
return false;
}
window.IFrameGoogle.document.body.onselect=function(){
return false;
}
window.IFrameGoogle.document.body.oncontextmenu=function(){
return false;
}*/
}
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Google翻译</title>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" onload="LoadWindow()">
<iframe name="IFrameGoogle" src="http://translate.google.cn/?hl=zh-CN&tab=wT"
marginwidth="1" marginheight="1" border="0" frameborder="0"
width="700" height="617" scrolling="no">
</iframe>
</body>
</html>
将以上代码另存为.hta文件即可,效果:






