摘要: 设置: avaPlot.Plot.Axes.Left.TickLabelStyle.FontName = "DejaVu Sans";avaPlot.Plot.Axes.Bottom.TickLabelStyle.FontName = "DejaVu Sans";即可 阅读全文
posted @ 2025-07-11 10:55 黄立明02 阅读(20) 评论(0) 推荐(0)
摘要: Rider启动Socket后关闭不了 清理项目的.Idea文件夹,里面包含的是Rider的调试配置信息 阅读全文
posted @ 2025-03-11 11:17 黄立明02 阅读(16) 评论(0) 推荐(0)
摘要: 非托管中如下定义,使用StructLayout、FieldOffset特性 并且项目还要启用允许不安全代码执行:修改项目的.csproj文件在PropertyGroup节点中添加一行<AllowUnsafeBlocks>true</AllowUnsafeBlocks>。 [StructLayout( 阅读全文
posted @ 2024-09-02 16:07 黄立明02 阅读(10) 评论(0) 推荐(0)
摘要: 声明如下代码 [DllImport("user32.dll", CharSet = CharSet.Auto)] private static extern int MessageBox(IntPtr hWnd, string text, string caption, uint type); 在需 阅读全文
posted @ 2024-09-02 11:19 黄立明02 阅读(465) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace IocApplication{ public stati 阅读全文
posted @ 2024-07-11 15:44 黄立明02 阅读(12) 评论(0) 推荐(0)
摘要: 如果要调用C++动态库,在window上C++动态为.dll后缀,在LinuxC++动态库为.so后缀. 那么在调用的时候可以不指定调用的后缀名 形式1:[DllImport("Detection.AlgorithmLib")] 形式2-绝对路径:[DllImport("Algorithm/Dete 阅读全文
posted @ 2024-05-11 08:49 黄立明02 阅读(323) 评论(0) 推荐(0)
摘要: 乌班图不能单独安装运行时,不知道为什么,需要安装sdk才可以使用 sudo apt-get updatesudo apt-get install -y apt-transport-https sudo apt-get install -y dotnet-sdk-8.0 阅读全文
posted @ 2024-05-09 16:52 黄立明02 阅读(126) 评论(0) 推荐(0)
摘要: 在使用 GCC 编译器编译多个源文件时,你需要将所有需要编译的源文件列出,并在命令行中将它们一起传递给 GCC。GCC 会将这些源文件编译成目标文件(.o 文件),然后链接成最终的可执行文件或动态库。 下面是一个示例命令行: bash Copy code g++ -c file1.cpp file2 阅读全文
posted @ 2024-05-09 13:51 黄立明02 阅读(111) 评论(0) 推荐(0)
摘要: 很可能是Linux系统没有安装libVLC 可以执行下面的命令进行安装 sudo apt install libvlc-dev 可以还需要执行命令 sudo apt install vlc 阅读全文
posted @ 2024-04-30 13:16 黄立明02 阅读(150) 评论(0) 推荐(0)
摘要: 我本地的QT版本和现场的QT版本不一致,导致双击打不开(不知道为什么打不开) 重新再现场编译程序即可。 阅读全文
posted @ 2024-01-31 09:03 黄立明02 阅读(104) 评论(0) 推荐(0)