Quote: "I still want to know the manual coding process."
Google for inverse pinvoke or reverse pinvoke.
Essentially it requires using ildasm to disassemble the dll into
MSIL.
Then making some modifications to the disassembly before assembling it again with ilasm.
If you are using .net v2 the modifications are very small and simple. See the first post by Serge Lidin in
this thread. .net v1 is a bit more work.
dll tool is my free tool that attempts to automate the process.
Alternatively tgc sell a plugin called
Styx which allows you to use .net dlls without modifying them.
By way of demonstration, he emitted a batlike squeak that was indeed bothersome.