随笔分类 - C#
摘要:在VS2013环境里搭载QT老是出现模块计算机类型“X86”与目标计算机类型“x64”冲突2、解决方案2.1 项目右键,属性》配置管理选择》x64,没有的话新建;2.2 项目右键,属性》连接器》高级》目标计算机》MachineX642.3 右键解决方案选择“Change QT Version” 》选
阅读全文
摘要:1.[dellimport] 方式调用c++ opencvsharp emgucv https://github.com/shimat/opencvsharp/tree/master/src/OpenCvSharp/PInvoke https://www.codeproject.com/Articl
阅读全文
摘要:微软企业库Enterprise Library 微软企业库Enterprise Library 微软企业库Enterprise Library 微软企业库Enterprise Library http://entlibcontrib.codeplex.com/ http://wpf.codeplex
阅读全文
摘要:1.数据流向 List<模型> 数据-->MsgPack 打包成byte[]—> couchbase 实例调用 Store(Enyim.Caching.Memcached.StoreMode.Set, documentId, doc);存储数据。 pgsql+ mysql +dapper MsgPa
阅读全文
摘要:一、新建线程的3种方法 a)异步委托;b)Thread类;c)线程池; 二、异步委托 1、简单使用,检查委托是否完成其任务 a) 通过 BeginInvoke() 的返回值IAsyncResult 中的成员IsCompleted判断 b)通过 BeginInvoke() 的返回值IAsyncResu
阅读全文
摘要:0.开发环境 win10,vs2013-x64 1.安装: sqlite-netFx451-setup-bundle-x86-2013-1.0.102.0.exe 注意事项:选在VisualStudio designer components 选项 2.验证是否安装成功 找到工具菜单,选择连接到数据
阅读全文
摘要:1.软件注册类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Management; using System.IO; using System.D
阅读全文
摘要:1.安装log4net 官网首页:http://logging.apache.org/log4net/ 下载地址:http://logging.apache.org/log4net/download_log4net.cgi 找到对应.net版本的 log4net.dll 在项目中引用 下载的 log
阅读全文
摘要:1.NOIP (功能齐全,评价较高) http://www.codeproject.com/Tips/813187/Csharp-Read-and-write-Excel-xls-and-xlsx-files-con http://npoi.codeplex.com/releases http://
阅读全文
摘要:一.问题:为了满足足够大的应用,满足更多的客户,就需要架设N台Web服务器(N>=2),在多台Web服务器的情况下,就会涉及到一个问题:用户登陆一台服务器以后,如果在跨越到另一台服务器的时候能够继续使用客户的Session? 二.解决方案:使用session服务器 1.开启State Service
阅读全文
摘要:1、 OpenFileDialog openImageDialog = new OpenFileDialog(); openImageDialog.Filter = "Image Files (*.jpg;*.png)|*.jpg;*.png"; openImageDialog.Multiselec...
阅读全文
摘要:序列化和反序列化helperusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml.Serialization;using System.IO;using S...
阅读全文
摘要:简单入门:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;namespace LinqtoDataset{ class Program ...
阅读全文
摘要:在软件系统中,经常有这样一些特殊的类,必须保证它们在系统只只存在一个实例,才能确保它们的逻辑正确性,以及良好的效率,如何绕过常规的构造器,提供一种机制来保证一个类只有一个实例。using System;using System.Collections.Generic;using System.Lin...
阅读全文
摘要:需要一个帮助类using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Ink;using ...
阅读全文
摘要:using System;using System.Diagnostics;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { ...
阅读全文
摘要:地址:链接:http://pan.baidu.com/s/1jGlMyEi 密码:zaeghttp://blog.csdn.net/lhx527099095/article/category/943002http://blog.csdn.net/mane_yao/article/details/55...
阅读全文
摘要:1、需要添加应用System.Drawing.dll2.命名空间using System.IO;using System.Drawing;using System.Drawing.Imaging;3、方法一**//// /// 生成缩略图 /// ///...
阅读全文
摘要:1、xaml 中实现 这里是toolTip! 2、c#语言中实现string tip = "这里是toolTip!";toolTip.SetValue(ToolTipService.ToolTipProperty, tip...
阅读全文
浙公网安备 33010602011771号