笔记

Win32程序:与”LPCWSTR”类型的形参不兼容

      出现该问题的原因是通常手动输入的字符串都是LPCSTR类型的, 解决办法如下: 在工程处右键,属性-常规-字符集,将Unicode字符集改为为多字节字符集,应用并确认...

ASS 字幕格式规范

0. 前言 Sub Station Alpha 本身是一个 Windows 平台下制作 SSA 格式字幕的软件,该软件已经不再开发了,而它所创造的 SSA 格式却流行开来,并演化出了更先进的 ASS 格式。 ASS specs 文档可能比较偏向于在...

Clone a List in C#

This post will discuss how to clone a list in C#. The solution should construct a list containing the specified list elements in the same order as the original list. 1. Using List Constructor T...

Composer 镜像使用帮助

composer config -g repos.packagist composer https://mirrors.tencent.com/composer/  

C#中单例模式的实现

一、引言 算是第一篇和设计模式正式相关的文。 相信写代码的都听说过设计模式,即使没有特意去学过。 而在这些设计模式之中,有一种很基础,也很常用的模式,就是单例模式(Singleton)。 那这篇文就来学习学...

c# 反编译软件ILSpy的使用教程

方法/步骤 1.下载地址:http://download.csdn.net/detail/qq_34533514/9743934 2.打开安装后的程序 ,如下图:  3.选择要反编译的程序,左上角点击“文件” 点击“打开”,如下图: ...

C#未能加载工具箱项

只要源码(.cs)写好了,就可以出现在工具箱中,但是需要编译后生成别的格式的文件,才能在工具箱中直接使用。 写好代码后,直接生成一下,自定义控件就会出现在工具箱中(前提是已设置工具箱自动填充),并且...

cloudflare worker镜像

// Website you intended to retrieve for users. const upstream = 'xxx.com' // Custom pathname for the upstream website. const upstream_path = '/' // Website you intended to retrieve for user...

git设置代理

git config --global https.proxy proxy_address:proxy_port  

C# 退出程序再重新启动

/// <summary> /// 退出登录 /// </summary> public static void ReLoign() { Application.ExitThread(); Thread thtmp = new Thread(new ParameterizedThreadStart(Run)); object appN...