 |
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

February 17th, 2007, 12:36 PM
|
Registered User
|
|
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

March 7th, 2007, 12:21 PM
|
Friend of Wrox
|
|
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

March 7th, 2007, 12:55 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
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)
|

March 7th, 2007, 03:28 PM
|
Friend of Wrox
|
|
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

March 7th, 2007, 03:39 PM
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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
================================================== =========
|

March 7th, 2007, 07:55 PM
|
Friend of Wrox
|
|
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

March 8th, 2007, 04:11 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|

March 8th, 2007, 11:41 AM
|
Friend of Wrox
|
|
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

March 8th, 2007, 01:10 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|
 |