上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 36 下一页
摘要: [StructLayout(LayoutKind.Explicit)]与[FieldOffset(0)] :FieldOffset(偏移量) [StructLayout(LayoutKind.Sequential)]与 [MarshalAs(UnmanagedType.U4)]:UnmanagedT 阅读全文
posted @ 2022-11-18 10:57 ꧁执笔小白꧂ 阅读(45) 评论(0) 推荐(0)
摘要: 1、概述: 消息句柄(Message)指:Windows 操作系统发给应用程序的一个通告,告诉应用程序发生了什么事件。 2、结构: typedef struct tagMSG { HWND hwnd; UINT message; WPARAM wParam; LPARAM lParam; DWORD 阅读全文
posted @ 2022-11-18 10:29 ꧁执笔小白꧂ 阅读(191) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-11-18 10:22 ꧁执笔小白꧂ 阅读(103) 评论(0) 推荐(0)
摘要: 1、Winform代码: public partial class USBDeviceMode : Form { public USBDeviceMode() { InitializeComponent(); UsbNotification.RegisterUsbDeviceNotification 阅读全文
posted @ 2022-11-17 13:29 ꧁执笔小白꧂ 阅读(1340) 评论(0) 推荐(0)
摘要: 托管变量变为非托管变量 string a=""; string b; int str_size = Marshal.SizeOf(a); IntPtr buffer = Marshal.AllocHGlobal(str_size); // 从进程的非托管内存中给DevBroadcastDevicei 阅读全文
posted @ 2022-11-17 11:09 ꧁执笔小白꧂ 阅读(65) 评论(0) 推荐(0)
摘要: 一、MAUI原生控件: 1、Grid 单元格的height="*"时与WPF不同 WPF为grid高平均分配,Maui7为不知名高度的平均分配(<grid的高);宽与WPF作用相同,可能是BUG。如下: 图后补。 2、CheckBox的大小没属性可以调整(没看怎么和WPF一样自定义样式),且图案的左 阅读全文
posted @ 2022-11-17 10:40 ꧁执笔小白꧂ 阅读(690) 评论(0) 推荐(0)
摘要: WindowsAPI_设备管理器: /** *┌──────────────────────────────────────────────────────────────┐ *│ 描 述:WindowsAPI_设备管理器 *│ 作 者:执笔小白 *│ 版 本:1.0 *│ 创建时间:2022-11 阅读全文
posted @ 2022-11-16 11:19 ꧁执笔小白꧂ 阅读(819) 评论(0) 推荐(0)
摘要: 旧版文档(2000年第二次印刷)下载地址: 新编Windows_API_参考大全(真正完整版).zip 最新在线文档地址: Win32 API 编程参考(微软官方) 阅读全文
posted @ 2022-11-16 11:17 ꧁执笔小白꧂ 阅读(3130) 评论(0) 推荐(2)
摘要: 1、运行代码: #region 查Default是否可能是null List<string> strs = new List<string>(); string s1=strs.FirstOrDefault(); Console.WriteLine(s1); List<Test1> test1s = 阅读全文
posted @ 2022-11-15 09:02 ꧁执笔小白꧂ 阅读(362) 评论(0) 推荐(0)
摘要: 1、下载连接: Network Pinger 2、基础使用: 阅读全文
posted @ 2022-11-14 11:49 ꧁执笔小白꧂ 阅读(1820) 评论(0) 推荐(0)
摘要: 一、移除旧机器的激活码 1、打开KEPServerEX的注册码页,点击右侧的License Utility(状态栏小图标-右键): 2、选择要迁移的激活ID,点击 Transfer(转移): 3、保存转移许可 单击 Save to File...(保存到文件...),停用计算机上的许可证。此时将显示 阅读全文
posted @ 2022-11-07 08:59 ꧁执笔小白꧂ 阅读(945) 评论(0) 推荐(0)
摘要: Regex regex = new Regex(@"^[A-Za-z0-9 ]+$"); // 正则表达式(可以为空格+大小写字母+数字) return regex.IsMatch(oldStr); // 只有空格+大小写字母+数以内的字符则为true 阅读全文
posted @ 2022-11-02 14:38 ꧁执笔小白꧂ 阅读(501) 评论(0) 推荐(0)
摘要: 未记录 阅读全文
posted @ 2022-11-01 22:22 ꧁执笔小白꧂ 阅读(55) 评论(0) 推荐(0)
摘要: 一、简介: Linq(语言集成查询): 为 C# 和 Visual Basic 提供语言级查询功能和高阶函数 API,让你能够编写具有很高表达力度的声明性代码。 二、优点: 1、LINQ具有语言级查询语法,切可用let定义语句内变量; 2、具有很高的表达力度。 三、基础语法示例: // See ht 阅读全文
posted @ 2022-11-01 22:21 ꧁执笔小白꧂ 阅读(137) 评论(0) 推荐(0)
摘要: 使用OnPlatform->On标签的样式: <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Cla 阅读全文
posted @ 2022-10-31 23:14 ꧁执笔小白꧂ 阅读(130) 评论(0) 推荐(0)
摘要: _=方法(); 中的'_'为方法返回的结果放在堆栈中,不做存储。方法同步运行 Console.WriteLine("Hello, World!"); _ = Main1(); // 可以结束掉 _ = Main2(); // 死掉 Console.WriteLine("EndWorld!"); Co 阅读全文
posted @ 2022-10-28 16:55 ꧁执笔小白꧂ 阅读(450) 评论(0) 推荐(0)
摘要: Simulator 阅读全文
posted @ 2022-10-27 17:17 ꧁执笔小白꧂ 阅读(469) 评论(0) 推荐(0)
摘要: static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetC 阅读全文
posted @ 2022-10-27 16:21 ꧁执笔小白꧂ 阅读(112) 评论(0) 推荐(0)
摘要: public partial class App : Application { /// <summary> /// 异常处理 /// </summary> protected override void OnStartup(StartupEventArgs e) { base.OnStartup( 阅读全文
posted @ 2022-10-27 15:01 ꧁执笔小白꧂ 阅读(193) 评论(0) 推荐(0)
摘要: // 泛型类; class引用类型约束;new()无参约束;struct值类型约束 class TC1<T> where T : class { T member; #region 多态是指同一个行为具有多个不同表现形式或形态的能力;返回类型可以不一样,参数类型可以不一样,参数个数可以不一样。 pu 阅读全文
posted @ 2022-10-25 23:14 ꧁执笔小白꧂ 阅读(179) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 36 下一页