自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 资源 (7)
  • 收藏
  • 关注

原创 局域网内H5视频通话(webrtc+nodejs信令服务器)

webrtc+nodejs视频通话

2023-07-19 17:46:19 556

原创 nginx反向代理

nginx反向代理

2023-07-19 17:31:42 166

原创 WebRtc环境搭建(win10+vs2019)

VS2019+windows下编译webrtc

2023-07-07 16:07:48 1122

原创 MVC界面前端HTML传值到控制器的方法

前端 1 <html> 2 <head> 3 <meta name="viewport" content="width=device-width" /> 4 <title>Test</title> 5 </head> 6 <body> 7 <form action="/Home/Test" method="post"> 8 <div> 9

2022-02-28 14:04:37 681

原创 2021-11-02

异常报警线程控制://定时检查存储是否需要报警 Thread threadTmp5 = new Thread(new ThreadStart(BV)); threadTmp5.Start();系统报警声引用://音频报警引用 [DllImport("kernel32.dll")] public static extern bool Beep(int freq, int duration); private

2021-11-18 17:32:26 71

原创 XML对象序列化和反序化的问题详解三(对于List对象生成xml及恢复解析)

List对象转自定义xml字符串public static string CreateXmlListFile<T>(List<T> OBJ, string InterfaceName, string code, string message) { XmlDocument xmlDoc = new XmlDocument(); //创建类型声明节点 XmlNode node = xmlDoc.

2021-11-18 16:26:13 456

原创 XML对象序列化和反序化的问题详解二(对于对象自定义节点生成xml)

对象生成自定义节点的XMLpublic static string CreateXmlFile<T>(T Object, string InterfaceName, string code, string message){ XmlDocument xmlDoc = new XmlDocument(); //创建类型声明节点 XmlNode node = xmlDoc.CreateXmlDeclaration("1.0", "ut

2021-11-18 15:36:12 155

原创 XML对象序列化和反序化的问题详解一(对于对象标准生成xml)

XML对象标准序列化Public static string XMLSerialize<T>(T entity){ string xmlstring = string.Empty; XmlSerializer xmlserializer = new XmlSerializer(typeof(T)); using (MemoryStream ms = new MemoryStream()) { xmlserializer.Serialize(ms, entity); xmls

2021-11-18 15:06:39 109

原创 2021-11-15

c#调用C++SDK结构类型引用方法引用:[DllImport("DChiDV.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)] public static extern int CXK_SetTime(ref DV_TM ptm);在c#中引用的dll文件的方法中,如方法参数包含结构类型,需要另作定义说明。 [StructLayout(LayoutKind.Sequential)]

2021-11-15 17:25:54 551

原创 2021-11-02

系统报警声音线程调用//定时检查存储是否需要报警 Thread threadTmp5 = new Thread(new ThreadStart(BV)); threadTmp5.Start();报警引用dll文件//音频报警引用 [DllImport("kernel32.dll")] public static extern bool Beep(int freq, int duration); priva

2021-11-02 15:03:59 68

原创 2021-11-02

富文本编辑器恶意上传漏洞–解决方法问题描述:借助上传网络图片功能,向asp.net项目中上传可执行那文件。后台代码原先处理方式:if (response.StatusCode != HttpStatusCode.OK) { State = "Url returns " + response.StatusCode + ", " + response.StatusDescription; return this;

2021-11-02 13:55:46 62

原创 网页前端调用播放语音

<script type="text/javascript" language="javascript"> function text() { var text = new SpeechSynthesisUtterance("hello world"); window.speechSynthesis.speak(); } </script>

2021-08-10 13:59:07 410

原创 form.show()与form.showdialog()区别

非模态窗口1、 form.show() 后不影响程序运行。form.show() 后form界面控件不显示则需要添加form.Update()。form.show()后form界面控件显示不全则需要采用双缓冲办法: protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams;

2021-06-24 15:15:52 714

原创 进度条颜色更迭---不同进度显示不同颜色

自定义进度条控件,重绘系统控件(方案一)public partial class CustomProgressBar : ProgressBar { public CustomProgressBar() { InitializeComponent(); this.SetStyle(ControlStyles.UserPaint, true); } protected override

2021-06-23 10:02:37 1333

原创 后台线程更新主界面UI

Invoke(new Action(() => { label4.Text = "(" + (((int)Upspeed) > 99 ? 99 : (int)Upspeed).ToString() + "M/s" + ")"; }));

2021-06-22 16:04:08 111

原创 解压zip文件自动覆盖实现主程序自动更新功能

必须下载nuget上的donetzip的dll引用文件。using Ionic.Zip;using System;using System.Collections.Generic;using System.Diagnostics;using System.IO;using System.Threading;using System.Windows.Forms;using System.Xml;namespace UpgraderA{ public partial class U

2021-06-21 17:44:52 554

原创 U盾简易版——控制指定U盘才能被插上电脑识别

u盘插上会被识别(下面switch下有两个case做了操作,u盘插上电脑偶尔被识别U盘插入但偶尔也会被识别为一种设备插入,所以需要两种情况都判断),并检查其中含有指定文件,不含则被移除。#region 设置指定u盘识别 string strCurUsb = ""; private bool bMonitorFlag = true; public const int WM_DEVICECHANGE = 0x219;//U盘插入后,OS的底层会自动检测到,然后向

2021-06-21 17:10:03 409

原创 C#与Android之间的实时视频传输——c#上位机篇(通过usb线连接)

adb转端口号 private void Trans() { Process p = new Process(); //实例一个Process类,启动一个独立进程 p.StartInfo.FileName = "cmd.exe"; p.StartInfo.UseShellExecute = false; //关闭Shell的使用 p.StartInfo.RedirectStandardIn.

2021-06-21 17:02:42 1337 3

原创 c#之Linq查询集合语句

linq选择的点集合Dictionary<double, double> points = new Dictionary<double, double>(); Dictionary<double, double> selectpoints = new Dictionary<double, double>(); selectpoints = points.Where(a => a.Key > stxa && a.K

2021-06-08 14:54:46 343

原创 c# winform h.265解码

第一步:运行install.bat文件,本地注册队友activex控件.第二步:工具箱–选项卡–com–选择aPlayrer,随后作为普通控件使用第三步:程序运行前,必须在电脑上先注册控件,否则会导致程序应用报错打不开....

2021-05-26 18:41:15 1131

原创 c# GDI+绘图基本(一)

GDI+绘制如下效果:代码展示: class Circular { private Graphics g = null; public Circular(Graphics gg)//重写 { g = gg; } public void Draw(int x1, int y1, int x2, int y2) { if (g != null)

2021-05-26 17:02:36 231

原创 c#程序设置自启动

方法:public void SetSetupWindowOpenRun(string setupPath, string linkname, string description) { string desktop = Environment.GetFolderPath(Environment.SpecialFolder.Startup) + "\\" + linkname + ".lnk"; if (System.IO.File.Exis

2021-05-24 15:21:48 199 1

原创 c#读取注册表指定路径指定属性的值

注册表指定路径指定属性的值 RegistryKey hklm = Registry.LocalMachine; RegistryKey software = hklm.OpenSubKey(@"SYSTEM\CurrentControlSet\Enum\USB\VID_2695&PID_7381\0001"); //打开"SYSTEM"子键 label1.Text = software.GetValue("LocationIn

2021-05-13 11:50:47 421

原创 c# 显示桌面调用

在C#中,使用 显示桌面 的功能,实际就是使用 Shell.Application 去执行 ToggleDesktop 这个功能,代码如下:Type shellType = Type.GetTypeFromProgID("Shell.Application");object shellObject = System.Activator.CreateInstance(shellType);shellType.InvokeMember("ToggleDesktop", System.Reflection.

2021-05-08 17:04:02 664

原创 c#获取枚举对应描述信息

依据枚举code值,获取DescriptionAttribute的描述文本源码实现public static string GetDescriptionValue(Enum errorCode){Type type = errorCode.GetType();FieldInfo fd = type.GetField(errorCode.ToString());if (fd == null) return string.Empty;object[] attrs = fd.GetCustomAtt

2021-04-23 09:54:54 240

原创 图片缩放及添加文字或者图片水印

图片缩放及添加文字或者图片水印/// /// 自动缩小原图:默认142X80大小/// /// /// public static string ZoomImage(string srcImgFile){string newImgFileName = string.Empty;FileStream fs = null;try{if (!File.Exists(srcImgFile)) { return string.Empty; }string dirName = Path.Get

2021-04-22 09:44:41 198

原创 Json序列化及反序列化

json序列化及反序列化便于数据传输JSON序列化 public static string JsonSerializer<T>(T t) { DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(T)); MemoryStream ms = new MemoryStream(); try { ser.W

2021-04-21 19:23:25 126

原创 获取视频文件的时长

获取视频文件的时长以下为项目源码,直接可用private long GetFileTime(FileInfo info, out string infoLength){if (info.Extension.ToLower() == “.jpg”) { infoLength = “00:00:00”; return 0; }string strPath = info.FullName;long bolSec = 0;infoLength = “00:00:00”;try{// 2016-0

2021-04-21 18:52:30 670

原创 c#获取照片的拍摄日期

下载NuGet包:Microsoft.WindowsAPICodePack-Shell添加引用:using Microsoft.WindowsAPICodePack.Shell;以下为获取照片时间的方法:public string GetMediaTimeLen(string path){var file = path; ShellObject obj = ShellObject.FromParsingName(file); var takenDate = obj.

2021-04-21 14:52:04 959

原创 c#取本地ip地址

c#取本地ip地址引用system.Netpublic static string GetCurrentHostIpAddress(){IPHostEntry ihe = Dns.GetHostEntry(Dns.GetHostName());IPAddress ipaddress = null;for (int i = 0; i < ihe.AddressList.Length; i++){if (ihe.AddressList[i].AddressFamily == Address

2021-04-19 13:51:16 114

转载 生成器脚本

HM NIS Edit常用脚本常用脚本转载自https://blog.csdn.net/m1223853767/article/details/79702064

2021-04-14 14:17:22 1469

webrtcDemo.rar

webrtcDemo.rar

2023-07-19

nginx反向代理相关文件.rar

nginx反向代理相关文件.rar

2023-07-19

oracle操作类.rar

Oracle连接操作类

2022-01-11

截屏(winform)模拟微信截图项目

c#/.net 模拟微信截图源码项目

2021-11-03

adb_api.rar

Android与c#之间视频实时传输

2021-06-22

h.265播放器模板参考

Aplayer播放器的模板

2021-05-26

Aplayer的h.265解码包

适用于c#开发h.265视频解码播放器

2021-05-26

APlayerSDK.zip

播放h.265必备SDK(c#用)

2021-05-26

简易温度示波器详细开发源码(带图表分析)

初学者,简易示波器开发,带有注释,

2021-04-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除