且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C#中的lzo_1z解压缩

更新时间:2023-01-25 11:00:15

中遇到pinvoke
解决方案

错误,您已经问了这个问题 ^ ],并提出了一些建议.请不要重复发布相同的问题一次.

You have already asked this question here[^], and been given some suggestions. Please do not repost the same question more than once.


如果可以得到LZO .NET包装器,为什么还要跳过篮球?
请在此处查看:用于.NET的LZO.NET高速压缩 [
Why do you want to jump through hoops if you can get a LZO .NET wrapper?
Please see here: LZO.NET Highspeed Compression for .NET[^].

Regards,

Manfred


在DllImport中,您可以选择CallingConvention=CallingConvention.StdCall.您确定压缩库使用此格式,因为此处使用错误的选项可能会导致您看到错误?
In your DllImport you have the option CallingConvention=CallingConvention.StdCall. Are you sure that the compression library uses this form, as using the wrong option here will probably cause the error you are seeing?