Archive for May 4th, 2007
A class for simulating MSN Messenger popup window
This is a dialog-based class derived from CDialog, it shows or hides a dialog in an animated way, just like MSN Messenger does. it’s still a draft, I’ll add more features and refactor it later on.
Usage:
- Add “AnimateDlg.h” and “AnimateDlg.cpp” in your project.
- Add a CDialog-based class in your program.
- Replace all ‘CDialog’ with ‘CAnimateDlg’ in header file and implementation file.
Known Bugs:
This verstion of CAnimateDlg only works properly when Windows task bar is on the bottom of screen. it’ll be fixed in a future version.
To be continued…
发布一个Google Talk辅助聊天工具
Usage:
- 下载GSnap
- 如果你有web server,请先配置你的上传图片的脚本,保存为g.xml
- 执行GSnap,截图后,图片会自动上传到您的服务器中,并且图片的URL就保存在系统的剪贴板中,你只要在聊天窗口中,paste给您的朋友即可。(虽然和QQ的截图相比还是有些不方便,但总比没有强:)
旧版本的GSnap只能截图,新版本的GSnap加入了将截图上传到http server的功能。目前功能比较单一,但也比较简单,如果您是个网站站长,拥有自己web server,也许这个会给你带来些许用处。
配置文件如下
<gsnap server=”charry.org” uploadpath=”test” url=”test/upload9233832dfkasdf_sdf.asp” port=”80″ tagname=”file1″>
<!– server: your web server’s hostname or ip address –>
<!– uploadpath: the relative upload-path in your web server –>
<!– url: the path of your uploading script, e.g. upload/upload.php –>
<!– port: port of web server –>
<!– tagname: tag name in form –>
</gsnap>
如上面的xml所示:
server表示服务器地址,注意不要带http://
uploadpath表示上传目录,这个地址是相对于服务器根的地址,注意这个目录的权限
url表示上传文件脚本的地址,这个地址是相对于服务器根的地址
port表示服务器的端口
tagname表示上传页面<form />中文件名的标签名
点击这里下载
P.S. 下一版本可能会加入自动上传到知名相册站点的功能,比如Google Picasaweb, Flickr等