Stella981 Stella981
4年前
C#创建cookie读写cookie
一、创建cookie    HttpCookiecookienewHttpCookie("UserInfo");//创建多值cookie             cookie.ExpiresDateTime.Now.AddDays(1);//设置cookie的失效时间为一天,如果不设置失效时间,cookie会在浏览器关闭即消失,不
Stella981 Stella981
4年前
C# HtmlDecode、HtmlEncode、UrlEncode、UrlDecode
不用System.Web 对 Content进行编码,De编码stringcontent"<br/";strings1WebUtility.HtmlEncode(content);strings3WebUtility.HtmlDecode(s1);strings4WebUtility.UrlEncod
Wesley13 Wesley13
4年前
C#调用打印机
usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Drawing;usingSystem.IO;usingSystem.Windows.Forms;namespaceTY\_ClassLibrary{  
Stella981 Stella981
4年前
C# 获取当前屏幕DPI
原文:C获取当前屏幕DPI(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fkybs0%2Fp%2F7429282.html)1.通过Graphics类获取GraphicscurrentGraphicsGraphics.F
Wesley13 Wesley13
4年前
C# 设置鼠标光标位置
C设置鼠标光标位置usingSystem.Drawing;usingSystem.Runtime.InteropServices;namespaceZB.QueueSys.Common{publicclassMouseHelper{
Wesley13 Wesley13
4年前
C 侵入式数据结构
之前在网上了解到Linux内核开发时用的是侵入式(intrusive)数据结构,就想了解下。然后读了这篇介绍Linux内核中用到的双向链表实现的文章(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.jobbole.com%2F87687%2F)。看完那篇博客后,就想
Stella981 Stella981
4年前
C# CsRedis的初探(二)
Redis常用命令基本篇keys命令     ?  匹配一个字符 KEYSh?llo匹配hello, hallo和hxllo等。    \  匹配任意个(包括0个)字符KEYSh\llo匹配hllo和heeeeello等。
Wesley13 Wesley13
4年前
C++错误收集(2)
ERRORNO.2内置函数inline。类体中定义的函数功能一般规模较小,系统调用类为定义的函数的过程需要的时间开销是比较大的,为了减少系统调用函数的时间开销,如果在类体智能光定义的函数不包括循环等控制结构,C会自动将它们作为内置函数。内置函数的作用是将函数实现的代码替代声明的地方,以减小系统调用类外函数的时间开销。今天使用是遇到了问题
Wesley13 Wesley13
4年前
C# 生成条形码
C生成条形码  上一篇分享了关于二维码的生成,本篇将分享条形码。  该方法需要引用  BarcodeLib.dll(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fpan.baidu.com%2Fs%2F1GhEG9UDa32bSoT62zkA)   
Stella981 Stella981
4年前
C#连接操作mysql实例
\转\C连接操作mysql实例(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.cnblogs.com%2Ffreeliver54%2Farchive%2F2012%2F11%2F20%2F2778637.html)本文转自:http://hi.baidu.com/zh