
C#
qq_43472573
这个作者很懒,什么都没留下…
展开
-
C# 学习笔记:简单的sqlite数据库操作
使用的命名空间为 using System.Data.SQLite; 使用vs时,在“工具”->”NuGet包管理器“下可以搜索下载此工具包; 构建数据库文件 using System; using System.Collections.Generic; using System.Text; using System.Data.SQLite; namespace WinFormsApp1.Func.DB { class Class1 { public void.原创 2022-02-14 13:36:21 · 876 阅读 · 1 评论 -
笔记:C#调用C++动态库
C#调用C++的动态库方式有两种: 一种是直接调用: 这种形式可以用一个类来封装从dll文件中提取出来的方法,然后继承或调用此类; using System.Runtime.InteropServices;//需要引入的命名空间 //前缀必须是static extern [DllImport("dllName.dll", EntryPoint = "FuncNameWhichNeedInt"))] public static extern Int GetInt(int Paramete原创 2022-02-08 17:42:42 · 3440 阅读 · 0 评论 -
异常集合::C# winform程序 ,按钮文本button.text是中文在前英文在后时,只显示出中文部分
private void button1_Click(object sender, EventArgs e) { button1.Text = "是吗button"; } 输出button1.Text 结果为“是吗button”。说明赋值没有问题,但是在显示文本的时候没有显示后面的英文部分; 将button1.Text改为先英文后中文,全中文,全英文,都可以正常显示出按钮文本 ...原创 2022-01-27 17:51:34 · 1511 阅读 · 0 评论