Originally posted by Adrian.
I have the code, that code is way off and does not work.
That code isn't "way off". I tested it before posting and works just fine.
The reason "it won't work" is because people don't know C#. They know "how to make tools in C#".
If you'd know proper C#, you would knew you just use PInvoke for printf and it works just fine.
That's how I do it and how it works.
Another thing, just because someone's code is different, doesn't mean it's wrong or "way off".
2+4 = 6 but 4+2 = 6 aswell.
That's the problem with people these days, they make a C# tool and they think they know C#.
Just because you can use an included library, doesn't mean you know C#. FAR from.