上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 附录七:轻松搞定位运算 - 知乎 (zhihu.com) Egon林海峰 ​ https://egonlin.com/book.html 22 人赞同了该文章 目录: 一 前言 二 真值、机器数(原码、反码、补码) 三 位运算 3.1 按位与& 3.2 按位或| 3.3 按位异或^ 3.4 向左位移 阅读全文
posted @ 2023-09-04 14:38 enif 阅读(4) 评论(0) 推荐(0) 编辑
摘要: C# String.Trim() 无法清除字符串中的\0 在vb6中导致字符串截断。 public static string GetPrintableString(this byte[] bs) { byte[] btnew = new byte[bs.Length]; for (int i =0 阅读全文
posted @ 2023-07-31 15:11 enif 阅读(123) 评论(0) 推荐(0) 编辑
摘要: //2023.09.05 C# 无法反射ActiveX对象方法, 在明确方法参数的情况下,可采用dynamic动态调用方式。 bool ret = (bool)((dynamic)obj).MethodA("", "",ref inerr,ref str); //程序集引用方式 int int111 阅读全文
posted @ 2023-07-19 14:05 enif 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 合并两个rtf文件, 多个\r\n在rtf中等于一个, 可使用\par标记换行 合并后颜色表可能失效,可预先在第一个文件中生成所有用到的颜色解决。 private static string CombineRtf(string rtf1, string rtf2) { rtf1 = rtf1.Tri 阅读全文
posted @ 2023-07-13 10:28 enif 阅读(118) 评论(0) 推荐(0) 编辑
摘要: '' C++ .h STDMETHODIMP MyATL15(LONG a, LONG b, LONG* c); '' C++ .idl [id(1), helpstring("Method MyATL15")] HRESULT MyATL15([in] LONG a, [in] LONG b, [ 阅读全文
posted @ 2023-03-22 09:13 enif 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 折腾了两天, 最终发现,无法实现。 微软文档有说明: 注解 此方法用于从非托管代码访问托管类,不应从托管代码调用。 有关详细信息,请参阅 IDispatch:: Invoke。 MethodBase._MethodBase.Invoke 方法 (System.Reflection) | Micros 阅读全文
posted @ 2023-03-17 17:19 enif 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 查看每个数据库对内存的占用 SELECT ISNULL(DB_NAME(DATABASE_ID),\'RESOURCEDB\') AS DATABASENAME, CAST(COUNT(ROW_COUNT) * 8.0 /(1024.0) AS DECIMAL(28,2)) AS \'SIZE(MB 阅读全文
posted @ 2023-03-02 10:14 enif 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 本文实现了在VS2019中调试 VB6 CreateObject方式调用的C# COM工程。 1,用C#编写一个窗体程序 CSharpStart.exe。 在此窗体中 Process.Start("vbProjectExe路径")。 (用于保持调试进程) 2,将待调试的C# COM工程切换到debu 阅读全文
posted @ 2023-02-20 19:40 enif 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 删除%LocalAppData%\Microsoft\VisualStudio\16.0_cd0f2560\privateregistry.bin,再次启动VS。 无法初始化注册表根配置单元 - Visual Studio 反馈 阅读全文
posted @ 2023-01-03 13:53 enif 阅读(109) 评论(0) 推荐(0) 编辑
摘要: UDL(一种文件格式)_百度百科 (baidu.com) 阅读全文
posted @ 2022-12-28 09:59 enif 阅读(24) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页
豫ICP备2021034901号