如何为 Raku NativeCall 声明 "LPTSTR"?
How to I declare "LPTSTR" for Raku NativeCall?
Raku/Perl6
Windows
我正在尝试编写对使用 "LPTSTR" 的 C 函数的 Raku Native 调用。我该如何声明?类似 constant DWORD := int32;
但对于 LPTSTR?
如果有帮助,我找到了以下描述:"LPTSTR is a [long] pointer to a (non-const) TCHAR string" 和 "LPTSTR: null-terminated string of TCHAR (Long Pointer)"
"LPTSTR" 来自 "LPWSTR lpBuffer,"
LP =(长)指针,TSTR = 如果定义了 UNICODE
则为宽字符串,否则为 8 位字符串。所以它要么是 wchar_t *
要么是 unsigned char *
。从 Raku-space.
可能很难确定其中哪些对您正在使用的库有效
Raku/Perl6 Windows
我正在尝试编写对使用 "LPTSTR" 的 C 函数的 Raku Native 调用。我该如何声明?类似 constant DWORD := int32;
但对于 LPTSTR?
如果有帮助,我找到了以下描述:"LPTSTR is a [long] pointer to a (non-const) TCHAR string" 和 "LPTSTR: null-terminated string of TCHAR (Long Pointer)"
"LPTSTR" 来自 "LPWSTR lpBuffer,"
LP =(长)指针,TSTR = 如果定义了 UNICODE
则为宽字符串,否则为 8 位字符串。所以它要么是 wchar_t *
要么是 unsigned char *
。从 Raku-space.