C program file mostly compiles to native machine code and is platform specific. However, VB.NET compiles to .NET MSIL code, which can then run on a .NET Virtual Machine.
That being said, you can write your own compiler for C that compiles to MSIL or look at C++/CLR.