摘要: 1.需要 QQWry.Dat IP 地址数据库 2辅助类库 1 1 using System; 2 2 using System.Collections.Generic; 3 3 using System.IO; 4 4 using System.Linq; 5 5 using System.Tex 阅读全文
posted @ 2016-09-22 16:00 苏镡 阅读(851) 评论(0) 推荐(0) 编辑
摘要: var httpClient = new HttpClient(); using (FileStream fs = new FileStream("C:\\1.jpg", FileMode.Open, FileAccess.ReadWrite)) { using (var content = new 阅读全文
posted @ 2016-08-31 17:19 苏镡 阅读(1145) 评论(0) 推荐(0) 编辑
摘要: 1,前端请求如下 2,注意事项 要设置 contentType: 'application/json' 3,效果 如下图 4,总结 阅读全文
posted @ 2016-08-16 15:13 苏镡 阅读(3026) 评论(1) 推荐(1) 编辑
摘要: 1. 首先引入Log4net程序集 2.修改webconfig配置文件 在 configuration 节点下面添加如下节点 3.创建 Log4net 帮助类 注意需要在 阅读全文
posted @ 2016-07-14 14:13 苏镡 阅读(2210) 评论(1) 推荐(1) 编辑
摘要: 第一步: 创建web api 在nuget 上搜索 webapitestclient (包含预发行版) 然后在 /Areas/HelpPage/Views/Help/Api.cshtml 末尾 添加 @Html.DisplayForModel("TestClientDialogs")@section 阅读全文
posted @ 2016-06-07 22:58 苏镡 阅读(232) 评论(0) 推荐(0) 编辑
摘要: int _tmain(int argc, _TCHAR* argv[]){ //定义LPWSTR 类型的宽字符串 LPWSTR szUnicode = L"This is a Unicode String;"; //定义LPSTR 类型的窄字符串 LPSTR szMutliByte = "This... 阅读全文
posted @ 2015-09-23 17:05 苏镡 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 01-CreateMutex作用是找出当前系统是否已经存在指定进程的实例。如果没有则创建一个互斥体例如: 1 int main() 2 { 3 HANDLE m_hMutex = CreateMutex(NULL, FALSE, TEXT("jerry")); 4 if (GetLa... 阅读全文
posted @ 2015-08-30 22:34 苏镡 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 6 7 8 Your browser does not support the video tag. 9 10 11 12 属性值描述autoplayautoplay如果出现该属性,则视频在就绪后马上播放。controlscontrols如果出现该属性,则... 阅读全文
posted @ 2015-05-14 10:28 苏镡 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 一、指令格式条件转移指令JLE/JNG格式:JLE/JNG标号地址功能:小于等于/不大于时转到标号地址JNG有符号不大于则跳转//JumpifNotGreaterJLE有符号小于等于则跳转 //JumpifLessorEqualSF=1,ZF=1,OF=1//其中一个或者多个为1则跳转二、代码测试 ... 阅读全文
posted @ 2015-05-13 23:38 苏镡 阅读(296) 评论(0) 推荐(0) 编辑
摘要: using DAL;using Model;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace BLL{ ... 阅读全文
posted @ 2015-02-04 21:29 苏镡 阅读(335) 评论(0) 推荐(0) 编辑