C#获取当前程序所在路径的各种方法

一、获取完整包含执行程序的路径:exe文件所在的目录+.exe文件名 1、方法1:Type.Assembly.Location //获取当前进程的完整路径,包含文件名(进程名)。 string str = this.GetType().Assembly.Location; 结果...

在 C# 中等待线程完成Task.WaitAll和Thread.Join

1.Task.WaitAll()等待线程以 C#方法结束 2.Thread.Join()等待线程以 C#方法结束 Task.WaitAll()等待线程以C#方法结束 C#Task.WaitAll()方法用于Task等待类中所有对象的完成。Task类代表 C# 异步任务。Task您...

如何查看Dll中包含了哪些函数

如何查看Dlll包含了哪些函数,有两种方法: 1. 用工具depends来查看 该工具可从http://www.dependencywalker.com/下载,打开该软件,再通过该软件打开需要查看的Dll, 比如打开C运行时库,C:WindowsSystem32msvc...

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/  

How to Limit Your WordPress Search Results

We all know the default WordPress search function isn’t very great or at least not as good as Google 🙂 , but there are a few tricks out there to help improve the search results. This post will sho...

C#中单例模式的实现

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

.Net之程序保护(.NET Reactor)

下载地址:http://www.eziriz.com/downloads.htm 做一个简单的许可证系统,下面是具体步骤: 1, OPEN ASSEMBLY打开项目可执行文件(debug文件夹里面exe文件)。 2, 选择SETTINGS选项卡,将RUN W...