随笔分类 -  c#技巧

摘要:建立一个C++的Win32DLL 这里要注意选择"Export symbols"导出符号。点击完成。 如下图所示: 编写函数 由于项目的名称是"TestCPPDLL",因此,会自动生成TestCPPDLL.h和TestCPPDLL.cpp两个文件,.h文件是要导出内容的声明文件,为了能清楚的说明问题 阅读全文
posted @ 2020-04-29 12:44 Ace001 阅读(1433) 评论(1) 推荐(0)
摘要:问题 “System.NullReferenceException”类型的未经处理的异常在 未知模块。 中发生 未将对象引用设置到对象的实例。 解决方案 1.尝试 用管理员身份运行CMD,输入netsh winsock reset并回车(注意,必须是已管理员身份运行,这个重置LSP连接)2打开异常设 阅读全文
posted @ 2018-10-25 19:29 Ace001 阅读(2590) 评论(0) 推荐(0)
摘要:public static void Main(string[] args) { string abc="123"; //调用 string result = GetVarName(p => abc); Console.WriteLine(result); Console.ReadLine(); } 阅读全文
posted @ 2017-10-23 17:29 Ace001 阅读(611) 评论(0) 推荐(0)
摘要:动态把json对象的字段值赋给某个对象的字段 08D12352-4044-490D-B3FD-978257103C13 From:http://www.cnblogs.com/xuejianxiyang/p/7678079.html 阅读全文
posted @ 2017-10-16 17:57 Ace001 阅读(1656) 评论(0) 推荐(0)
摘要:引用B.dll后,右键引用中的B.dll属性->别名->Test using的最前面加上 extern alias Test; 使用 Test.MyClass.DoSth(); 阅读全文
posted @ 2017-06-13 16:07 Ace001 阅读(1986) 评论(0) 推荐(0)