CLR Console vs Form Application

This is a discussion on CLR Console vs Form Application within the C++ Programming forums, part of the General Programming Boards category; If you read long .txt files and do calculations on these. Say that you will read a .txt-file from a ...

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

    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 07:42 PM.

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,436
    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 08:16 PM.
    The programmers wife tells him: Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.
    The programmer comes home with 12 loaves of bread.


    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
    383
    yes okay.. Then I know better I will do that.

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,538
    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, 09:25 AM
  4. GUI Application --> Console
    By Student040314 in forum C++ Programming
    Replies: 2
    Last Post: 03-14-2004, 12: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

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