Well, your question is pretty vague, so I don't know what kind of an answer you expect to receive. However, it sounds to me that the key here is wrapping your code in COM-compatible libraries. For example, you would create a VC++ library, which in turn, you can reference it and all of its functions inside your .NET project.