Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 17th, 2007, 12:36 PM
Registered User
 
Join Date: Feb 2007
Location: Ghaziabad, UP, India.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nir_pankaj
Default Meaning Of MultiLanguage

.Net support multi languages what is exactly meaning of this statement? How many languages .Net support? Can we use two languages in any project?

Pankaj Kumar Verma
Reply With Quote
  #2 (permalink)  
Old March 7th, 2007, 12:21 PM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Depends on what you mean by multilanguage.

If you are asking about programming languages, .NET provides a framework where code from any language is compiled into a common runtime language that will work with code written in any other .NET language (as long as a few rules are followed).

Dozens of languages are available for writing .net code, with the common ones being C#, VB.NET, and C++.

As far as I know, you cannot use 2 languages in a single project.

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
Reply With Quote
  #3 (permalink)  
Old March 7th, 2007, 12:55 PM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You can use two, or more, different languages in an ASP.NET site and you can use assemblies created from different languages within the same project.

--

Joe (Microsoft MVP - XML)
Reply With Quote
  #4 (permalink)  
Old March 7th, 2007, 03:28 PM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by joefawcett
 You can use two, or more, different languages in an ASP.NET site and you can use assemblies created from different languages within the same project.

--

Joe (Microsoft MVP - XML)
If I understand you correctly, you are saying that we can reference assemblies from various languages in a project - but that the code in an assembly must be from the same language. Is that correct? Thanks!

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
Reply With Quote
  #5 (permalink)  
Old March 7th, 2007, 03:39 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Woody,
   You can make calls to a compilied C# dll, for example, from within a VB.NET project without much problem. However, the calling application can only contain one lanague throughout the solution. (In this case, VB)

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
Reply With Quote
  #6 (permalink)  
Old March 7th, 2007, 07:55 PM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey Doug,

That is how I have understood it all along (and stated above in my first post), and what I do daily since we have assemblies written in both VB.NET and C# - and that is what we also do in COM since our dlls are written in both VB6 and C++. However, I don't consider that using "two langauges in a single project". I just wanted to clarify what Joe was saying.


Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
Reply With Quote
  #7 (permalink)  
Old March 8th, 2007, 04:11 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
quote:However, the calling application can only contain one lanague throughout the solution. (In this case, VB)
It depends on your definition of a solution.
Quote:
quote:I don't consider that using "two langauges in a single project".
And that depends on the definition of a project....

Each assembly can only contain code from a single language, as a single compiler is used to compile a single assembly.
However, in an ASP.NET 2 project, it's easy to mix C# and VB pages as each page can be compiled to a single assembly. In addition, you can have multiple languages inside the App_Code folder, as long as you don't mix the languages in the same subfolder, and as long as you add a compiler directive to tell your separate folders apart.

Finally, there are ways to link assemblies into a new assembly. I never tested this, but I think you can have a VB .dll and a C# .exe, and link them together in a final .exe which then contains code from two languages.

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote
  #8 (permalink)  
Old March 8th, 2007, 11:41 AM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I do understand about mixing pages of different languages in ASP.NET 2.

In my definition of "project" I am not considering ASP.NET projects, but purely Windows apps or Libraries.

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems
Reply With Quote
  #9 (permalink)  
Old March 8th, 2007, 01:10 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Right, in that case I don't think there's a way to use more than one language, except for linking them afterwards, but I guess that doesn't really count... ;)

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
meaning post and get amged Pro PHP 1 August 1st, 2007 06:33 AM
meaning of following Regular expressions buntyindia BOOK: Beginning Regular Expressions 0 June 25th, 2007 04:44 AM
meaning of a warning mastrgamr C++ Programming 7 December 22nd, 2006 08:16 AM
Meaning mani_he Beginning PHP 3 January 19th, 2005 12:26 AM
"p2p" what's meaning? shuicanyi Forum and Wrox.com Feedback 4 April 16th, 2004 12:44 PM



All times are GMT -4. The time now is 09:02 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.