When items are dragged and dropped into a listbox hosted in a .NET Windows application, INameFactory.UnpackageNames() throws an error.
最後に公開された状態: August 19, 2020No Product Found
不具合 ID 番号
NIM033706
送信されました
March 28, 2008
最終更新日
June 5, 2024
適用対象
No Product Found
見つかったバージョン
9.2
プログラム言語
C#
ステータス
Will Not Be Addressed
開発チームは、この問題またはリクエストを検討した結果、これに対処しないことに決定しました。 問題の「参考情報」セクションに、さらに詳細な説明が示されていることがあります。
参考情報
We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.
対処法
INameFactory.UnpackageNames expects a SafeArray – the closest thing to it in C# is byte array, not MemoryStream itself. Try the following:<a href="http://System.IO" target="_blank">System.IO</a>.MemoryStream memStream = (<a href="http://System.IO" target="_blank">System.IO</a>.MemoryStream)e.Data.GetData(<a href="http://myFormat.Name" target="_blank">myFormat.Name</a>); object varBytes = memStream.ToArray(); INameFactory pNameFactory = new NameFactoryClass(); IEnumName pEnumNames = pNameFactory.UnpackageNames(ref varBytes);