我有一个很大的问题....不能解决它。 我有免费的pascal程序和lua脚本。 function getString(i:integer):PChar;public; stdcall;
begin
//something to do
Result:=strnew(PChar('newString'));
end
通过将注册功能有Lua的实施 ffi.cdef
[[
char*__
discussing/learning about the correct way to call a FFI of the Windows-API from Rust之后,我玩了一下,想再仔细检查我的理解。 我有一个Windows API被调用两次。在第一次调用中,它将返回实际out参数所需的缓冲区大小。然后,第二次调用足够大小的缓冲区。我目前使用Vec作为此缓冲区的数据类型(请参阅下面的示例)