文章分类 -  C#

摘要:DLLWrapper using System; using System.Runtime.InteropServices; namespace Myapp { public class DLLWrapper { ///<summary> /// API LoadLibrary ///</summa 阅读全文
posted @ 2024-01-25 10:26 MangoJuice 阅读(1) 评论(0) 推荐(0) 编辑
摘要:关键类 SpeechSynthesizer using System.Speech.Synthesis; filePath = Path.Combine(filePath, $"{fileName}.wav"); //string filePath = _hostingEnvironment.Con 阅读全文
posted @ 2024-01-25 10:26 MangoJuice 阅读(2) 评论(0) 推荐(0) 编辑
摘要:基本思路 用系统函数SHGetFileInfo获得文件信息,如图标、大小、更新日期等,放入TreeView控件 SHGetFileInfo如下: /// <summary> 返回系统设置的图标 </summary> /// <param name="pszPath">文件路径 如果为"" 返回文件夹 阅读全文
posted @ 2024-01-25 10:25 MangoJuice 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Console.WriteLine("Directory.GetCurrentDirectory() " + Path.Combine(Directory.GetCurrentDirectory(), "wwwroot").ToString()); Console.WriteLine("Enviro 阅读全文
posted @ 2024-01-25 10:25 MangoJuice 阅读(0) 评论(0) 推荐(0) 编辑
摘要:UseForwardedHeaders 未开启 //httpContext.GetRemoteIPAddress() 192.168.8.16 //httpContext.Connection.RemoteIpAddress 127.0.0.1 Accept = */* Connection = c 阅读全文
posted @ 2024-01-25 10:23 MangoJuice 阅读(4) 评论(0) 推荐(0) 编辑