Thread: CLR Console vs Form Application

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    385

    CLR Console vs Form Application

    If you read long .txt files and do calculations on these. Say that you will read a .txt-file from a CLR console application and this is reading 1 txt file, saving values to arrays and do calculations that will take 1 Minute.

    If you do the same from within a Windows Form Application. Shouldn´t it be now difference or is the speed slower here or is it not possible to do such a comparison.
    Last edited by Coding; 02-12-2008 at 08:42 PM.

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    The speed should be the same. However if the application involves a lot of output I think its possible the console application runs slower since output to the console is notoriously slow when compared to a GUI. Don't know however if this also holds true for managed code.

    Meanwhile... I don't know if anyone told you before but if you are programming for the CLR, including windows forms, you are not developing in C++. You are developing managed code. You should be asking question on the C# or Windows forums.
    Last edited by Mario F.; 02-12-2008 at 09:16 PM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    385
    yes okay.. Then I know better I will do that.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Depends on whether it's C++/CLI or C#. Both works, but I do recommend C#.
    And Windows Forms is the managed equalient of GUI.
    CLR Console is the managed equalient of console application.
    So they both are Managed and both are about as slow.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows Form Application ?
    By messi10 in forum C# Programming
    Replies: 3
    Last Post: 04-13-2009, 08:07 AM
  2. Using System.ServiceProcess in console application
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 06-18-2008, 11:36 PM
  3. Replies: 7
    Last Post: 01-14-2008, 10:25 AM
  4. GUI Application --> Console
    By Student040314 in forum C++ Programming
    Replies: 2
    Last Post: 03-14-2004, 01:30 PM
  5. Run vbscript from C++ console application
    By dp_goose in forum C++ Programming
    Replies: 3
    Last Post: 05-15-2003, 09:00 AM