摘要:程序需要,我在网上找了很久才找到,刚刚把程序写好,并加写了注释,希望能帮助大家再写程序前先引用microsoft excel 11.0 object library我看到的文章是10.0的,我这是office2003是11.0,只要安了excel就有这个引用~private sub cmdsave_click()msgbox "文件保存为: d:\电网配电线路管理信息系统\信息查询结果\......
摘要:public void treeviewdata(dataset ds,string textcolumnname,string parentcolumnname,string tagcolumnname){ mytreedata root = new mytreedata(); mytreedata child = null; for (i = 0 ; i < ds.tables[0].r......
DirectX9 3D快速上手 3
directx9 3d快速上手 3
by sssa2000 【程序编程相关:
Mobile phone managem】 【推荐阅读:
asp.net三种重定向方法的总结
】我们这里暂时先跳过,乏味的索引缓冲与深度缓冲的内容,先看看怎么在3d空间中实现一个东西,给自己来点成就感. 【扩展信息:
一个FTP客户端的C#代码
】4/15/2005正好sdk的向导也是这么安排的,呵呵,那我们就继续从向导出发吧,以tutorial 3为例子.
这个例子主要讲解运用变换矩阵来实现物体的变换,学过图形学或者线性代数的肯定就很容易理解,没学过的,找点这方面的资料看看就可以了.
先看看这个例子实现了什么,编译运行,噢,相比前面两个例子,有耳目一新的感觉,一个三角形绕着y轴旋转.
相比tutorial 2,多了2个函数:onresetdevice与setupmatrices.其中有注释,中文由我翻译,e文太差,翻译得不好不要b4我啊
public void onresetdevice(object sender, eventargs e)
{
device dev = (device)sender;
// turn off culling, so we see the front and back of the triangle
//关闭剔除,所以我们可以看见前面的与背面的三角形
dev.renderstate.cullmode = cull.none;
// turn off d3d lighting, since we are providing our own vertex colors
//关闭灯光,因为我们已经提供了自己的颜色
dev.renderstate.lighting = false;
}
private void setupmatrices()
{
// for our world matrix, we will just rotate the object about the y-axis.
// set up the rotation matrix to generate 1 full rotation (2*pi radians)
// every 1000 ms. to avoid the loss of precision inherent in very high
// floating point numbers, the system time is modulated by the rotation
// period before conversion to a radian angle.
// 在世界坐标中,我们要绕y旋转,建立旋转矩阵产生每秒360度的旋转,为了避免浮点数中的位数造成的时间上的损失,我们在转变为弧度前,强制调整系统时间
int itime = environment.tickcount % 1000;
float fangle = itime * (2.0f * (float)math.pi) / 1000.0f;
...
下一页 摘要:voicexml(voice extensible markup language)是一个新的xmlschema,用来制定通过语音对话访问web的内容及其交互语音应答的传递标准,从面向应用的角度来说,也就是开发语音用户界面。本文通过设计一个移动业务咨询系统来说明整个应用程序的流程。 1 voicexml的起源voicexml(voice extensible markup language)是一个......