Is it true that...

This is a discussion on Is it true that... within the C# Programming forums, part of the General Programming Boards category; C# isn't compiled that it is run on a vm to create the exe, C# apps can only be run ...

  1. #1

    Is it true that...

    C# isn't compiled that it is run on a vm to create the exe, C# apps can only be run with .net installed, C# is a lot like java.

    If any of those things are true then I don't know if I am going to be looking into C# as being my primary way to develop win32. The winapi is pretty cool, but I want somethign easier likke vb to develop win32. If those things about C# are true then I am going to stick to winapi w/MFC (So far I think MFC is the best approach to win32 programming)

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Hannover, Germany
    C# is compiled to MSIL code.
    When you click on the .exe, it gets compiled by a JIT compiler into machine code of the current machine and is run.
    To do this, you need the .NET Framework on every machine that needs to run the .exe file.

    C# is a lot like Java in the same way that an apple is a lot like a basketball. Both are objects in our world and thats about it. They look similar. C# is a lot like C++, C# is a lot like VB, C# is a lot like Java. Test it if you want to know if it fits your style of programming.

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    What is MSIL?

    The purpose of me asking is whether or not I want to stick with MFC or turn to C# for windows programming. Because of the fact that .NET needs to be installed on the machine running the program I think I will stick to MFC for windows programming with C++. Now, the .NET mainframe (or whatever you call it) is cross platform correct? Also what is the difference between Just In Time compiling and an interpreted language? (assuming I am correct in my assumption that an interpreted language is more or less JIT compiling).

    I hope my questions make sense because the whole .NET thing is just a big silly gimmick to me and I am trying to figure things out.
    Last edited by Shadow12345; 09-12-2002 at 11:59 AM.

  4. #4
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Here are some similarities between Java and .net.

    They are both middleware components and frameworks. They both employ a namespace hierarchy and compile to some form of intermediate language. Java is capable of using a JIT compiler, so it can be very similar to .net in that regard as well. The Java virtual machine is run in user mode and it simulates multiprocessing with a virtual monitor mode and a virtual user mode. The implimentation of the host is adapted into the virtual machine whos interface is the same across all platforms (the implementation is of the host, but the interface is the same). This is the same type of stragety .net would employ, or else very similar in order to make it cross platform compatible..
    Last edited by Troll_King; 09-14-2002 at 06:26 AM.

  5. #5
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    I'm not saying that there isn't differences but I would like to hear about them. I did some reading about virtual machines yesterday. Okay so state the differences in detail, thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  2. C++ FTP class won't work
    By lord mazdak in forum C++ Programming
    Replies: 8
    Last Post: 12-18-2005, 06:57 AM
  3. C++ Operator Overloading help
    By Bartosz in forum C++ Programming
    Replies: 2
    Last Post: 08-17-2005, 12:55 PM
  4. Reducing Code size from ridiculous length
    By DanFraser in forum C# Programming
    Replies: 10
    Last Post: 01-18-2005, 04:50 PM
  5. Something is wrong with this menu...
    By DarkViper in forum Windows Programming
    Replies: 2
    Last Post: 12-14-2002, 10:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21