- 博客(5)
- 资源 (1)
- 收藏
- 关注
转载 C#调用dll时的类型转换总结
C#调用dll时的类型转换总结 C++(Win 32)C#char**作为输入参数转为char[],通过Encoding类对这个string[]进行编码后得到的一个char[]作为输出参数转为byte[],通过Encoding类对这个byte[]进行解码,得到字符串C++ Dll接口:
2016-12-08 17:04:36
377
原创 XML序列化与反序列化代码
C#控制台程序一、Person.cs代码using System.Linq;using System.Text;using System.Threading.Tasks;using System.Xml;using System.Xml.Serialization;namespace xml_Serializable{ [Serializable]
2016-10-23 22:12:39
229
转载 XML存储与读取代码
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-
2016-09-30 16:18:47
260
原创 视觉模板匹配代码
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using VD
2016-09-21 23:00:53
904
原创 C#与C++混合编程之引用(一)
一、在.net平台上,调用dll文件有2种含义调用托管dll,即你使用.net平台开发的dll,属于托管代码。调用非托管dll,即传统的dll,一般是C++,VB,DELPHI等等开发出来的,属于非托管代码。如果是调用托管的dll,方法是 “在解决方案管理器” - “解决方案”(或项目) 中的任意地方, 右键“添加引用”,“浏览”,选择你需要调用的dll文件,确定即可,该dll会自动复制到
2016-09-21 22:47:44
4300
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人