当前位置: 代码迷 >> C# >> 200分求调用vc函数实战,该怎么处理
  详细解决方案

200分求调用vc函数实战,该怎么处理

热度:135   发布时间:2016-05-05 05:00:28.0
200分求调用vc函数实战
Dword DrawBarcode(Hdc DC,WCHAR* TEXT,WCHAR* Starstopchar,Wchar* facename,Wchar* buffer,Rect* bounds,RECT* barcodematrix,int textwidth,int texheight,int textbobarcode,int textquiezone,int barinflate,Dword color,Dword params)



C#
???
[DllImport("Barcode.dll", CharSet = CharSet.Unicode)]
private static extern string DrawBarcode


------解决思路----------------------
你所引用的DLL是纯C写的,还是C++的?
------解决思路----------------------
明显是Windows  SDK的玩意,句柄和DWORD好久没接触这么底层的东西了呢
------解决思路----------------------
你是要电子书还是干嘛?
------解决思路----------------------
你不是在提问中都写了怎么调用了,你还想要问什么问题?
------解决思路----------------------
注意 Unicode 字符集的编码转换
  相关解决方案