![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 69
lht02032003
这个作者很懒,什么都没留下…
展开
-
C#调用C/C++动态库的参数传递---数组指针的传递
C/C++ CODE: extern "C" __declspec(dllexport) void Test(int* ptr_int, unsigned char* ptr_byte); ... extern "C" __declspec(dllexport) void Test(int* ptr_int, unsigned char* ptr_byte) { for(int i =原创 2012-12-21 14:48:01 · 3461 阅读 · 0 评论 -
文件流Seek以及Read操作的问题(reader.BaseStream.Seek导致文件混乱问题)
reader.BaseStream.Seek(position, SeekOrigin.Begin); 看起来没什么问题,但是在实际使用中,只使用这段代码,会导致文件内容读取混乱! 必须使用StreamReader.DiscardBufferedData!!! 原因: 通过调用DiscardBufferedData示例读取数据之后,可按预期方式工作。 读取前 15 个字符后,位置重...原创 2018-12-13 11:36:31 · 1550 阅读 · 0 评论