我想根據下面的示例A添加一個列表框。 The Common Lisp Cookbook - Using the Win32 API 我添加了一個函數sendmessage,它映射到它的windows API計數器部分並從wndproc調用它。 但它抱怨像下面的類型轉換錯誤。 CL-USER 1 > (create-toplevel-window "ppp")
Error: #<Pointer
我想返回一個向量在pub extern "C" fn。由於載體具有任意長度,我想我需要與 的指針向量返回struct和 元件的載體中的數 我目前的代碼是: extern crate libc;
use self::libc::{size_t, int32_t, int64_t};
// struct to represent an array and its size
#[repr(C)]