Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 4th, 2007, 11:56 AM   #11
jan1024188
Programmer
 
jan1024188's Avatar
 
Join Date: Mar 2007
Location: Slovenia
Posts: 33
Rep Power: 0 jan1024188 is on a distinguished road
Send a message via MSN to jan1024188 Send a message via Yahoo to jan1024188 Send a message via Skype™ to jan1024188
Quote:
Originally Posted by milot View Post
In C# .NET that is done by instantiating a System.Diagnostics.Process (read below):

CSharp Syntax (Toggle Plain Text)
  1. using System;
  2. using System.Diagnostics;
  3.  
  4. public class testClass
  5. {
  6. public static void Main()
  7. {
  8. Process my_proc = new Process();
  9. my_proc.EnableRaisingEvents = false;
  10.  
  11. // this is our command that we want to invoke, in Microsoft Windows we can use "dir" to list our files.
  12. my_proc.StartInfo.FileName = "dir";
  13.  
  14. my_proc.Start();
  15. Console.WriteLine("\nDONE LISTING\n");
  16. }
  17. }

This must work also in Visual C++ because they are CLS-Compilant languages, and they use same class hierarchy.
In first moment I saw this code I tought it was Java. Now I see C# is very similiar to Java..... how strange...
jan1024188 is offline   Reply With Quote
Old Mar 4th, 2007, 1:18 PM   #12
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Quote:
Originally Posted by jan1024188 View Post
In first moment I saw this code I tought it was Java. Now I see C# is very similiar to Java..... how strange...
Not really, seeing as it's based on Java. Personally, I think it's better too.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Mar 4th, 2007, 2:04 PM   #13
jan1024188
Programmer
 
jan1024188's Avatar
 
Join Date: Mar 2007
Location: Slovenia
Posts: 33
Rep Power: 0 jan1024188 is on a distinguished road
Send a message via MSN to jan1024188 Send a message via Yahoo to jan1024188 Send a message via Skype™ to jan1024188
Quote:
Originally Posted by Ooble View Post
Not really, seeing as it's based on Java. Personally, I think it's better too.
I like Java more...
jan1024188 is offline   Reply With Quote
Old Mar 4th, 2007, 3:20 PM   #14
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I thought you implied you hadn't tried/seen C#??
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Mar 4th, 2007, 3:45 PM   #15
jan1024188
Programmer
 
jan1024188's Avatar
 
Join Date: Mar 2007
Location: Slovenia
Posts: 33
Rep Power: 0 jan1024188 is on a distinguished road
Send a message via MSN to jan1024188 Send a message via Yahoo to jan1024188 Send a message via Skype™ to jan1024188
Quote:
Originally Posted by DaWei View Post
I thought you implied you hadn't tried/seen C#??
No I ve never seen C# before. I dont care about Microsoft "products"
jan1024188 is offline   Reply With Quote
Old Mar 4th, 2007, 4:07 PM   #16
milot
Programmer
 
milot's Avatar
 
Join Date: Nov 2006
Location: Kosovė/Prishtinė
Posts: 47
Rep Power: 0 milot is on a distinguished road
Quote:
Originally Posted by Polyphemus_ View Post
Let me comment on this one. Firstly, Visual C++ is not a language, it is an IDE. You are talking about Managed C++, which is indeed a CLS-compliant language. However, the OP is probably using 'good old C++'.
Yes I know that Visual C++ is an IDE, but when I say "Visual C++" I'm thinking about Managed C++ the C++ which is a Microsoft product . But you are right I didn't express so good on this one, but it can be expressed as I did, but my mistake sorry for not being specific .

Last edited by milot; Mar 4th, 2007 at 4:27 PM.
milot is offline   Reply With Quote
Old Mar 4th, 2007, 4:32 PM   #17
milot
Programmer
 
milot's Avatar
 
Join Date: Nov 2006
Location: Kosovė/Prishtinė
Posts: 47
Rep Power: 0 milot is on a distinguished road
Quote:
Originally Posted by jan1024188 View Post
No I ve never seen C# before. I dont care about Microsoft "products"
You can write C# using Mono which is Free and Open Source implementation of .NET. You can also use GTK for GUI programming.
milot is offline   Reply With Quote
Old Mar 4th, 2007, 6:07 PM   #18
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
No I ve never seen C# before.
Quote:
I like Java more
So how's your programming logic?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Mar 5th, 2007, 9:09 AM   #19
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2 pegasus001 is on a distinguished road
Maybe these 2 will help:
No1
No2
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote
Old Mar 5th, 2007, 3:04 PM   #20
jan1024188
Programmer
 
jan1024188's Avatar
 
Join Date: Mar 2007
Location: Slovenia
Posts: 33
Rep Power: 0 jan1024188 is on a distinguished road
Send a message via MSN to jan1024188 Send a message via Yahoo to jan1024188 Send a message via Skype™ to jan1024188
Quote:
Originally Posted by DaWei View Post
So how's your programming logic?
Now when I saw C# I discovered I like Java more....

Oh and sorry for my offtopic posts...
jan1024188 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unix commands compatible with Windows? titaniumdecoy Bash / Shell Scripting 7 Oct 5th, 2006 7:25 AM
Compiling Maverik 6.2 (from C) megamind5005 C 16 May 3rd, 2006 5:41 PM
Going Visual..? hbe02 C++ 6 Mar 20th, 2006 4:33 PM
Visual Studio vs Visual C++ NightShade01 C++ 14 Feb 26th, 2006 9:39 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:57 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC