
c#
zyhui65
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C#笔记01:helloworld!
C#笔记01:helloworld! 1:建立环境 2:运行helloworld编者:张永辉 2012年10月22日//------------------------------------------------------------------------------1:建立环境 1 安装 Microsoft Visual Studio 2005原创 2012-10-22 15:51:50 · 477 阅读 · 0 评论 -
串口基础-查找可以使用的串口-C#窗口应用程序
//文件名:Form1.cs//功能:查找可以使用的串口//环境:VS2010 C#编程 C#窗口应用程序//编者:张永辉 2013年3月19日using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing原创 2013-03-19 11:12:50 · 899 阅读 · 0 评论 -
udp服务器_简单的控制台程序
/*****************************************************************************************文件:udp_server.cs功能:控制台形式的 UDP服务器 将收到的数据 原路返回编者:张永辉 2013年3月14日平台:VS2010***********************原创 2013-03-14 11:33:26 · 887 阅读 · 0 评论 -
c#应用03-线程的创建及结束
c#应用-线程的创建及结束1 创建环境 1 新建C#控制台应用程序 2 默认代码如下 至少有一个线程,即如下:(此代码仅显示了当前线程状态) using System; using System.Collections.Generic; using System.Linq; using System.T原创 2012-11-01 17:24:51 · 1308 阅读 · 0 评论 -
C# 读书笔记
数据类型: 值类型: sbyte 符号8位 byte 无符号8位 short 16 ushort 16 int 32 uint 32 long 64 uint原创 2013-01-09 14:35:52 · 522 阅读 · 0 评论 -
c#应用05-通过win服务查找服务.exe的路径
张永辉 2012年12月20日 //输入服务的名字 //返回服务的路径 //通过在服务在注册表的记录查找 using Microsoft.Win32; private string GetWindowsServiceInstallPath(string ServiceName) { string k原创 2012-12-20 16:00:48 · 572 阅读 · 0 评论 -
c#笔记03-关键字示例1
如下关键字: key_static key_new key_this key_delegate环境VS2010 C#控制台程序 张永辉 2012年11月9日-------------------------------------------------------------------------------------------------原创 2012-11-08 11:35:57 · 469 阅读 · 0 评论 -
c#应用04-udp服务器端与客户端
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading; //使用Thread类来创建和控制线程using System.Net;using System.Net.Sockets;namespa原创 2012-11-08 14:04:28 · 700 阅读 · 0 评论 -
c#应用02-消息的封装
消息的封装 此封装可以使用于C C++ C#等实现,用于socket usatr can等方式传输,不过要注意不同平台的大小端问题。public enum MSG_TYPE { gMsgFailure, gMsgSucceed, gMsgLogin, gMsgChart };//1用于服务器或用户 返回某些请求struct gMsgFailure{ UInt32原创 2012-11-08 11:29:30 · 625 阅读 · 0 评论 -
C#应用01-access登陆界面
-----C#运用-access登陆界面-----功能: 使用access建立小型数据库,保存用户名和密码. 在界面输入用户名和密码,以次登陆界面.编者:张永辉 2012年10月30日--------------------------------------------------------------------------------------------原创 2012-10-30 16:48:51 · 3549 阅读 · 2 评论 -
c#笔记04-委托 事件
有如下示例: 委托 -- 基本使用 事件 委托 --发送无参数消息 事件 委托 --发送有参数消息 事件 委托 --传递方法的方法张永辉 2012年11月9日------------------------------------------------------------------------------------------------原创 2012-11-09 16:16:47 · 826 阅读 · 0 评论 -
C#笔记02:数据类型
C#笔记02:数据类型 1 简单类型 2 引用类型 3 装箱和拆箱编者:张永辉 2012年10月22日//------------------------------------------------------------------------------ 数据类型有: 简单类型 结构类型原创 2012-10-22 15:52:28 · 492 阅读 · 0 评论 -
udp_server_c#_与串口间的数据转发
程序功能: UDP服务器--转发串口数据使用方法:1 打开串口 点击按钮就可 2 开启UDP服务端 点击按钮就可 3 根据显示的IP和端口,使用客户端连接到本服务器。 4 大功告成,串口与UDP客户端能够收发数据了编译方法: 1 创建c#窗体应用程序,名字:Comx_UdpServ原创 2013-03-20 15:21:29 · 1642 阅读 · 1 评论