本文介绍了Win32.memcpy C#..............?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是代码

this is the code

int srcStride = bmData.Stride;
int dstStride = bmData.Stride;
int dst = bmData.Scan0.ToInt32() + dstStride * (height - 1);
int src = pBuffer.ToInt32();
for (int y = 0; y < height; y++)
{
    Win32.memcpy(dst, src, srcStride);
    dst -= dstStride;
    src += srcStride;
}



并且在memcpy中给了我这样的错误
我该如何解决?


调用PInvoke函数``dshow!dshow.Core.Win32 :: memcpy''已使堆栈不平衡.这可能是因为托管PInvoke签名与非托管目标签名不匹配.检查PInvoke签名的调用约定和参数是否与目标非托管签名相匹配



and it gives me an error in memcpy that reads this way
how can i fix that please?


A call to PInvoke function ''dshow!dshow.Core.Win32::memcpy'' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature

推荐答案



这篇关于Win32.memcpy C#..............?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 19:55