gpt4 book ai didi

c# - 等效于 c# 中的 unsigned char *

转载 作者:太空宇宙 更新时间:2023-11-03 21:52:06 24 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
unsigned char ** equivalent in c# and have to write the return value in a file

我必须调用一个 win32 dll 函数

int func1(int arg1, unsigned char *arg2, int *arg3);

我写了 wrapped c# as

public extern int fuc1(int arg1, out IntPtr arg2, out IntPtr arg3);

arg2 必须分配 2048 字节并将其发送到 win32 dll。我将获得 arg2 和 arg3 作为输出。

我如何在 C# 测试应用程序和 C# 包装器中声明。我做对了吗?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com