
C#
文章平均质量分 64
神杀中龙
我需要自由的世界。
展开
-
计算每年元旦日干支
newyearday.txt 记录的是1900--2031间的元旦日干支。 计算每年元旦干支,已知1899年为己巳。 平年 干合支冲减一。 闰年 干合加一支冲。则1900年为平年,元旦日干支 为甲戌。原创 2014-09-07 21:53:31 · 5924 阅读 · 0 评论 -
C#格式化输出
格式项的语法是 {索引[,对齐方式][:格式字符串]}Console.WriteLine( "{0,:},{1},{2}",x1,x2,x3);// This code example demonstrates the Console.WriteLine() method. // Formatting for this example uses the "en-US" cult转载 2014-08-13 10:48:46 · 691 阅读 · 0 评论 -
C#直接调用DLL导出函数
示例 1本示例显示如何使用 DllImport 属性通过调用 msvcrt.dll 中的 puts 输出消息。// PInvokeTest.csusing System;using System.Runtime.InteropServices;class PlatformInvokeTest{ [DllImport("msvcrt.dll")] public转载 2014-08-25 21:28:08 · 1565 阅读 · 0 评论 -
C#直接调用C++非托管结构体、类、成员函数、成员变量
[StructLayout(LayoutKind.Sequential)] public class MyOGRE { //该方式是直接调用C++ DLL内的类的成员函数。 [DllImport("CPlusPlusCSharpMix.dll", EntryPoint = "?MyOGREHello@MyOGRE@@Q转载 2014-08-26 11:03:43 · 4171 阅读 · 1 评论 -
让Ogre使用外部渲染窗口
就是让Ogre不自己创建渲染窗口,而由第三方来创建。原创 2014-09-14 08:28:13 · 2355 阅读 · 0 评论 -
C#调用C++中导出类
C#要对数据进行封送处理,因为这涉及到托管与非转载 2014-09-14 14:13:09 · 4975 阅读 · 0 评论 -
C#调用WebBrowser NewWindow
为了不让程序调用其他默认的Web浏览器,需要重载Web转载 2014-10-04 16:52:26 · 7950 阅读 · 0 评论