6
我想製作一個界面,但我不知道什麼。OleVariant是否可用於DLL proc中的out參數?
是OleVariant
包含「標準」字符串的「標準」 - 傳遞和返回?
function Any(Input : OleVariant; out Output : OleVariant) : integer; stdcall;
另一方面可能是.NET,C#或C++或Delphi。
因此,他們可以在OleVariant
回一些「字符串」結果沒有我傳遞預定義的大小的緩衝區結果?
使用WideString傳遞字符串變量並節省您的麻煩。看看[這裏](http://stackoverflow.com/questions/8414972/delphis-sharemem-when-it-is-not-needed)一些額外的指針 –
OleVariant將*不*包含一個「標準」字符串(如果標準字符串是德爾福字符串)。將字符串分配給OleVariant時,該字符串將轉換爲「WideString」。 –