Eddieb337
Member
The vb6 to .NET upgrade wizard produced 2 interop dlls for my COM. one was AxInterop.TDCIPH32 and one was Interop.TDCIPH32. I disassembled the AxInterop dll and edited the IL file to change a method to take a native int instead of a string. Now the object viewer shows the method DecryptString to take an IntPtr instead of a string which is what i wanted. The only problem is now it throws a MissingMethodException.
A few questions:
Does the project still need to keep a reference to the original COM even though it has Interop dlls created from it? when i take the reference out it complains about missing members of the object.
Is it ok to modify the Interop classes automatically produced by .NET or should you manually create your own interop and make the necessary changes to it?
Should i make the same changes to the Interop dll as well as the Axinterop dll?
Thanks
A few questions:
Does the project still need to keep a reference to the original COM even though it has Interop dlls created from it? when i take the reference out it complains about missing members of the object.
Is it ok to modify the Interop classes automatically produced by .NET or should you manually create your own interop and make the necessary changes to it?
Should i make the same changes to the Interop dll as well as the Axinterop dll?
Thanks