随笔分类 - .net
摘要:/// <summary> /// Copyright © henryfan 2012 /// Email: henryfan@msn.com /// HomePage: http://www.ikende.com /// CreateTime: 2012/10/27 21:56:05 /// </summary> public class SecondCounter:IDisposable { interface ICounter { void Proce...
阅读全文
摘要:[ThreadStatic] static char[] mTempChars; protected static char[] GetTempData() { if (mTempChars == null) mTempChars = new char[1024 * 64]; return mTempChars; } public static string Replace(string value, string oldData, string ...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Text; namespace WindowsFormsApplication1{ using System; using System.Drawing; using System.Runtime.InteropServices; using Microsoft.Win32; using System.Reflection; using System.Collections.Generic; namespace BlackFox.Wi...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace VirtualGPS{ public class GPS { private System.Windows.Forms.Timer timer; //定时器, 模拟GPS时发送,周期间隔1S private System.IO.Ports.SerialPort serialPort; //串口 private ArrayList buf = ...
阅读全文
摘要:最近因为要用到directx写一下车载的界面,于是就去Microsoft下载了DirectX SDK。但是装了n次都是到最后了报出Error Code s1023,
如图:
阅读全文
摘要:1 public string DM2DD(string DegreeMinutes)
2 {
3 //转换NMEA协议的“度分”格式为十进制“度度”格式
4 string sDegree;
5 string sMinute;
6 string sReturn = "";
7 if (DegreeMinutes.IndexOf(".") == 4)
8 {
9 //DegreeMinutes = Replace(DegreeMinutes, ".", "")
10 //DM2DD = CDbl(Left(DegreeMinutes, 2)) + CDbl(Left(CStr(CDbl(Right(DegreeMinutes, Len(DegreeMinutes) - 2)) / 60), 8)) / 10000
11 DegreeMinutes = DegreeMinutes.Replace(".", "");
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Globalization;using System.Net;using System.IO;using System.Configuration;using System.Xml;
阅读全文

浙公网安备 33010602011771号