黄志勇的技术博客

技术博客

 
 
 
 
 
 

在Visual Studio 2005下使用CPPUnit向导

2009-11-12 17:07:11 阅读(0) 评论(0)

使用CPPUnitProjectWizard向导创建支持使用CPPUnit的测试类的Visual Studio 2005项目。

安装向导
0. 下载 CPPUnitProjectWizard
    http://cppunit.sourceforge.net/cppunit-wiki/CppUnitVisualStudio2005Wizard?action=AttachFile&do=get&target=CPPUnitProjectWizard.7z

阅读(0) | 评论(0) | 阅读全文>>

FlightGear中XML文档的读取

2009-5-23 14:12:31 阅读(20) 评论(1)

FlightGear中,对XML文档的读取是通过Expat读取的;当然不是直接用的Expat,而是通过建立一个VISITOR类,将VISITOR对象作为用户数据传入Expat中,在Expat中调用VISITOR的相应XML元素处理方法,实现对XML文档的解析的。实际使用VISITOR时,是将XML文件流和VISITOR对象作为readXML的参数,执行readXML时,读取XML文档,并处理XML文档,并用VISITOR对象处理XML文档。

阅读(20) | 评论(1) | 阅读全文>>

Nasal 一款微型开源脚本解释器

2009-5-7 21:00:03 阅读(33) 评论(0)

Nasal脚本解释器是一款微型的开源脚本解释器,由于它小巧易用,易于嵌入其它大型系统,为其它大型系统提供可扩展的脚本解释执行功能,使系统易于扩展。目前是一款出色的飞行模拟软件(FlightGear)的脚本解释模块就是使用的Nasal脚本解释器。最近几天细读了飞行模拟(FlightGear)代码中所使用的Nasal脚本解释器的源代码,现将我对Nasal脚本解释器的初步理解记录在本篇博文中。

1.Nasal脚本解释
Nasal基本虽然非常小巧,但是却有一般编译器的所有基本功能。它从读取脚本文件开始,至词法分析

阅读(33) | 评论(0) | 阅读全文>>

用OSG绘制的场景

2009-4-2 15:51:31 阅读(40) 评论(0)

根据Bruno Herbelin的《First steps with Open Scene Graph》,学习用OSG制作了如下图的场景效果,其中水面效果是根据王锐的《使用OpenSceneGraph+GLSL实现的水面效果》一文中制作得到的,并且也使用了该文中提供的相关文件。制作的效果图如下:
 用OSG绘制的场景 - 黄志勇 - 黄志勇的技术博客

 

阅读(40) | 评论(0) | 阅读全文>>

CVS 标签

2009-2-27 16:40:28 阅读(64) 评论(0)

很久以前简单的用过CVS标签,可是后来不记得怎么用CVS标签,不记得有哪些CVS 标签了。刚才又在找了找,竟然在CVSNT的帮助文档中找到了,现在贴下来,下次用时好参考。

Chapter 13. Keyword substitution

Keyword List

Using keywords
Avoiding substitution
Substitution modes

阅读(64) | 评论(0) | 阅读全文>>

对话:#09 重定向

2008-12-17 11:16:09 阅读(27) 评论(1)

我开始并没太在意,但过了第三天还没见到珍妮,才感到不妙。一阵犹豫与绝望之后,我去找弗奈尔。找她是很自然的,因为我和珍妮当时都向她汇报工作。

当我敲第二下门的时候,房门打开了。“啊,是你,”她说。“什么事?”

“正在找珍妮,好几天没见她了。”我解释道。

弗奈尔扫了我一眼,说:“啊,是的。她最近分配了新的任务。”

“是吗,她在哪里呢?”

“在圆屋,那里和发掘现场都需要添加人手。她一旦去了就必须呆在那里了。去那儿是受限制的,因为门锁和地道情况不太好,进出那儿要穿特制的服装,真是痛苦。”

阅读(27) | 评论(1) | 阅读全文>>

Gmsh: a three-dimensional finite element mesh generator with built-in pre- and post-processing facilities

2008-11-14 16:02:17 阅读(26) 评论(0)

Gmsh: a three-dimensional finite element mesh generator with built-in pre- and post-processing facilities

Christophe Geuzaine and Jean-François Remacle

阅读(26) | 评论(0) | 阅读全文>>

The Complete Guide to C++ Strings, Part II - String Wrapper Classes

2008-11-7 1:56:10 阅读(32) 评论(0)

Introduction

Since C-style strings can be error-prone and difficult to manage, not to mention a target for hackers looking for buffer overrun bugs, there are lots of string wrapper classes. Unfortunately, it's not always clear which class should be used in some situations, nor how to convert from a C-style string to a wrapper class.

This article covers all the string types in the

阅读(32) | 评论(0) | 阅读全文>>

The Complete Guide to C++ Strings, Part I - Win32 Character Encodings

2008-11-7 1:54:09 阅读(9) 评论(0)

Introduction

You've undoubtedly seen all these various string types like TCHAR, std::string, BSTR, and so on. And then there are those wacky macros starting with _tcs. And you're staring at the screen thinking "wha?" Well stare no more, this guide will outline the purpose of each string type, show some simple usages, and

阅读(9) | 评论(0) | 阅读全文>>

查看所有日志>>

 
 
 
 
 
 
 
 

  黄志勇

湖北省 武汉市 摩羯座

 发消息  写留言

 
博客等级加载中...
今日访问加载中...
总访问量加载中...
最后登录加载中...
 
 
 
 
 
 
 
心情随笔列表加载中...
 
 
 
 
 

日历

 
 
模块内容加载中...
 
 
 
 
 

天气

 
 
模块内容加载中...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2009