私はC#
を初めて使用しており、アプリケーションでCOM DLL
を利用する必要があります。.NETアプリケーションのCOM DLLの内容を表示
私は、元DLL
に対してtlbimp
を実行regsvr32
と私の新しいDLL
を登録している、ildasm
でDLL
の内容を見た後、(私のC#プロジェクトの場合と同じキーを使用して)/ilasm /res /dll /key
を使用してDLL
を再作成し、署名しました。 それから、新しいDLL
をGAC
に追加しました。
私は自分のアプリケーション内DLL
にreference
を加算して出力DLL
構造の各method
のType
にできています。
私は、値の
array(s)
を持つように、このDLL
を期待していますがget
メソッドを実行することができなかったと構造・ダンプ・ファイル内の任意の配列が表示されません。期待している2つの配列は、
INT
とSTRING
のタイプになります。使用してDLLのダンプがこのDLL
は以下combobox
を移入することができるようになっているildasm
この
DLL
で値の配列が実際に存在する場合、誰かが私に教えてくださいすることができたり私の車輪の回転を停止する必要がある場合は?
___[MOD]
| M A N I F E S T
|___[NSP] CSCICom_Usable
| |___[INT] CSCICom_Usable.Class1
| | | .class interface public abstract auto ansi import
| | | implements CSCICom_Usable._Class1
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = (01 00 24 32 34 42 33 31 37 34 37 2D 41 46 42 36 // ..$24B31747-AFB6 ...
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.CoClassAttribute::.ctor(class [mscorlib]System.Type) = (01 00 1A 43 53 43 49 43 6F 6D 5F 55 73 61 62 6C // ...CSCICom_Usabl ...
| |
| |___[CLS] CSCICom_Usable.Class1Class
| | | .class public auto ansi import
| | | implements CSCICom_Usable._Class1
| | | implements CSCICom_Usable.Class1
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.TypeLibTypeAttribute::.ctor(valuetype [mscorlib]System.Runtime.InteropServices.TypeLibTypeFlags) = (01 00 02 00 00 00 00 00) ...
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = (01 00 24 37 32 43 45 36 35 44 45 2D 46 30 42 38 // ..$72CE65DE-F0B8 ...
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.ClassInterfaceAttribute::.ctor(valuetype [mscorlib]System.Runtime.InteropServices.ClassInterfaceType) = (01 00 00 00 00 00 00 00) ...
| | |___[MET] .ctor : void()
| | |___[MET] GetIncidentCodes : class [VBA]VBA.Collection()
| |
| |___[INT] CSCICom_Usable.Class2
| | | .class interface public abstract auto ansi import
| | | implements CSCICom_Usable._Class2
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = (01 00 24 41 38 38 36 33 32 42 42 2D 41 46 46 31 // ..$A88632BB-AFF1 ...
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.CoClassAttribute::.ctor(class [mscorlib]System.Type) = (01 00 1A 43 53 43 49 43 6F 6D 5F 55 73 61 62 6C // ...CSCICom_Usabl ...
| |
| |___[CLS] CSCICom_Usable.Class2Class
| | | .class public auto ansi import
| | | implements CSCICom_Usable._Class2
| | | implements CSCICom_Usable.Class2
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.TypeLibTypeAttribute::.ctor(valuetype [mscorlib]System.Runtime.InteropServices.TypeLibTypeFlags) = (01 00 02 00 00 00 00 00) ...
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = (01 00 24 41 30 43 39 46 42 45 45 2D 42 36 45 38 // ..$A0C9FBEE-B6E8 ...
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.ClassInterfaceAttribute::.ctor(valuetype [mscorlib]System.Runtime.InteropServices.ClassInterfaceType) = (01 00 00 00 00 00 00 00) ...
| | |___[MET] .ctor : void()
| | |___[MET] get_Code : int16()
| | |___[MET] get_Name : string()
| | |___[MET] set_Code : void(int16)
| | |___[MET] set_Name : void(string)
| | |___[PTY] Code : int16()
| | |___[PTY] Name : string()
| |
| |___[INT] CSCICom_Usable._Class1
| | | .class interface public abstract auto ansi import
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.TypeLibTypeAttribute::.ctor(valuetype [mscorlib]System.Runtime.InteropServices.TypeLibTypeFlags) = (01 00 D0 10 00 00 00 00) ...
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = (01 00 24 32 34 42 33 31 37 34 37 2D 41 46 42 36 // ..$24B31747-AFB6 ...
| | |___[MET] GetIncidentCodes : class [VBA]VBA.Collection()
| |
| |___[INT] CSCICom_Usable._Class2
| | | .class interface public abstract auto ansi import
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.TypeLibTypeAttribute::.ctor(valuetype [mscorlib]System.Runtime.InteropServices.TypeLibTypeFlags) = (01 00 D0 10 00 00 00 00) ...
| | | .custom instance void [mscorlib]System.Runtime.InteropServices.GuidAttribute::.ctor(string) = (01 00 24 41 38 38 36 33 32 42 42 2D 41 46 46 31 // ..$A88632BB-AFF1 ...
| | |___[MET] get_Code : int16()
| | |___[MET] get_Name : string()
| | |___[MET] set_Code : void(int16)
| | |___[MET] set_Name : void(string)
| | |___[PTY] Code : int16()
| | |___[PTY] Name : string()
| |
|
続きますか?価値は何を表すべきですか? – 3615
私はこのアプリケーションが2つの配列の値を与えることができると期待しています。もう1つは 'STRING'です。もう1つは' INT'です さらに、これら2つの値が互いに結びついていると思います。コード名 – gruff
もしこれがダウンボートに値すると思ったら、少なくとも私が改善できるように説明してください。 – gruff