Profil de Libin绿色家园PhotosBlogListes Outils Aide

Blog


28 avril

让VS 2008支持Subversion插件Ankhsvn

Visual Studio 2005 有一个开源的Subversion插件,Ankhsvn  (http://ankhsvn.tigris.org/),安装后,VS 2005中将内置Subversion的支持,可以直接在VS里面提交修改。我经常用它和TortoiseSVN 配合来使用Subversion,十分方便。

可是升级到Visual Studio 2008后,发现Ankhsvn没有集成进来,因为目前的Ankhsvn还不支持VS2008,据说下个版本才会支持VS 2008。

不过这不影响我们在Visual Studio 2008中使用Ankhsvn,我们可以自己动手修改注册表,将Ankhsvn集成进VS 2008。方法很简单。

  1. 运行 regedit
  2. 找到 HKLMSOFTWAREMicrosoftVisualStudio8.0AddinsAnkh
  3. 右键点击它,选择导出,并指定一个文件保存。
  4. 用记事本或者其他文本编辑器打开这个文件,将其中的VisualStudio8.0替换为VisualStudio9.0
  5. 最后,双击这个修改后的注册表文件,提示是否导入进系统注册表,选择是。

再次打开Visual Studio 2008后,就会发现Ankhsvn已经集成进系统了。

为了方便操作,我写了一个vbscript脚本来进行上述操作。使用很简单,将下面的脚本保存到一个文本文件,命名为ankh.vbs,然后双击该文件即可运行。运行后,重新打开Visual Studio 2008,就会发现Ankhsv已经集成进来了。

顺便再推荐几个常用的免费的插件:

[FREE VISUAL STUDIO ADD-INS]
http://searchwindevelopment.techtarget.com/originalContent/0,289142,sid8_gci1262570,00.html


需要提醒的是,注册表操作不慎可能会导致系统崩溃,因此请谨慎修改注册表。

Dim shell, filename, fso, file, content
Set shell = CreateObject("wscript.shell"
)
Set fso = CreateObject("Scripting.FileSystemObject"
)
filename 
= "ankh.reg"


shell.run 
"reg export HKLMSOFTWAREMicrosoftVisualStudio8.0AddinsAnkh " & filename, 1True

Set file = fso.OpenTextFile(filename, 1FalseTrue)
content 
=
 file.ReadAll
content 
= Replace(content, "VisualStudio8.0""VisualStudio9.0"
)
content 
= Replace(content, ".NET 2005"".NET 2008"
)
file.Close()

Set file = fso.OpenTextFile(filename, 2True
)
file.Write content
file.Close()

shell.run 
"reg import " & filename, 1true


fso.DeleteFile filename
16 avril

Gpredict is a real-time satellite tracking and orbit prediction application

Gpredict Screenshots

Below you can see some sample screenshots of gpredict in in action. They illustrate the main features of gpredict. I have a whole album dedicated to screenshots of Gpredict in my Media Gallery. You can also post links to your own screenshots and pictures of Gpredict in action on the forum.

Main Window, Modules Layouts, and Views

Gpredict main window Gpredict main window

Gpredict main window Map View

List View List View

Polar View Single Satellite View

Future Pass Predictions

Next Pass: Data Next Pass: Polar

Next Pass: Az/El Next Pass: Data

Upcoming Passes Upcoming Passes

Radio and Antenna Rotator Control

Radio control window Antenna rotator control window

Preferences and Settings

Preferences Dialogue Preferences Dialogue

Preferences Dialogue Preferences Dialogue

Module Configuration

14 avril

用VC6.0编译boost 1.38.0

1. 从boost.org下载下1.38.0的源码

2.编译jam

    在boost_1_38_0\tools\jam\src下有个build.bat ,修改其ProgramFiles变量为VC安装的目录。

    执行build.bat msvc,等编译成功,会在\boost_1_38_0\tools\jam\src\bin.ntx86下生成bjam.exe

3.将bjam拷贝到boost_1_38_0\bin,将目录增加环境变量PATH。

4.编译整个boost

    在根目录boost_1_38_0,执行bjam --toolset=msvc-6.0
 

另外:

5. 如果编译boost里面单独的模块,如regex

    进入boost_1_38_0\libs\regex\build

    执行bjam  bjam --toolset=msvc-6.0

    就会在boost_1_38_0\bin.v2\libs\regex\build\msvc-6.0\debug\threading-multi下面生成boost_regex-vc6-mt-gd-1_38_0.dll和boost_regex-vc6-mt-gd-1_38_0.lib库,可以给VC6.0使用。