摘要: Go有一个全球模块代理,设置代理再去安装golang的插件,就可以安装成功了。 Windows用户打开Powershell。 $env:GO111MODULE="on" $env:GOPROXY="https://goproxy.io" go env -w GOPROXY=https://gopro 阅读全文
posted @ 2021-12-27 11:16 wssw 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 增加NLog.config 文件,并设置文件属性,复制到文件目录->始终复制。 阅读全文
posted @ 2021-12-15 15:55 wssw 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 主题:使用SuperSocket实现简单的Telnet服务器 1.创建.net控制台项目。 2.打开NUGET包管理器安装SuperSocket、SuperSocket.Engine、System.Configuration.ConfigurationManager。 3.Program.cs us 阅读全文
posted @ 2021-10-29 17:56 wssw 阅读(861) 评论(0) 推荐(0) 编辑
摘要: 一.效果图: 二.代码如下: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System; public class CommonS 阅读全文
posted @ 2021-01-14 15:55 wssw 阅读(1702) 评论(3) 推荐(1) 编辑
摘要: #ifndef GlslToHlsl#define GlslToHlsl#define vec2 float2 #define vec3 float3 #define vec4 float4 #define mat2 float2x2 #define mat3 float3x3 #define ma 阅读全文
posted @ 2020-03-26 19:07 wssw 阅读(737) 评论(0) 推荐(0) 编辑
摘要: 1.将要打包的的资源和layaairfiles.txt文件一起打成zip. 2.预加载阶段,先将zip包通过downfile下载并解压到缓存目录. 3.设置baseurl,开始预加载所有资源. 4.下面为node.js编写的自动生成layaairfiles.txt的脚本 5.将下载下来的zip文件解 阅读全文
posted @ 2019-06-04 15:05 wssw 阅读(1430) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; int sum(char * msg, ...); int my_vsprintf(char *buf, char *format, ...); int main() { sum("The sum of the list is:", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0); ... 阅读全文
posted @ 2018-11-30 15:08 wssw 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #井好表示注释CMAKE_MINIMUM_REQUIRED( VERSION 2.8 ) #设定最小版本号PROJECT( test ) #设定工程名 SET(CMAKE_CXX_COMPILER "g++") #设置编译器(可选的有gcc,g++) # 设置用debug还是release模式。de 阅读全文
posted @ 2018-11-27 16:55 wssw 阅读(192) 评论(0) 推荐(0) 编辑
摘要: server { listen 8088; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location ~ .*\.(gif|jpg|jpeg|png)$ { expires 24h; ... 阅读全文
posted @ 2018-11-15 18:33 wssw 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 一.生成动态链接库. MyDll.h MyDll.cpp 注意:工程设置里预处理器命令加上_MYDLL_EXPORT 编译生成.dll和.lib文件. 二.使用动态链接库. test.cpp 工程设置 C/C++ => 常规 => 附加包含目录:MyDll.h所在目录 链接器=> 常规 => 附加库 阅读全文
posted @ 2018-10-16 19:07 wssw 阅读(1557) 评论(0) 推荐(0) 编辑