473,395 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

General dot net questions.

I have a couple questions/comments concerning dot net and the future of dot
net development. If someone could address these, please do so.

First of all, with the advent of .net and the use of namespaces, why can't I
reference a public class that is contained in an EXE from another EXE? It
seems that the only way to access other classes from other process is
through a DLL. In comparison to Java, where all compiled code goes into a
..class file, .net still keeps the separation of DLL and EXE. Why not
eliminate the EXE and DLL connotation and simply have a compiled output file
that can assume either role? i.e., Compiled modules have a new .NET
extension which can either function in the DLL or EXE role.

Next, when building code I have to decide whether to create a managed C++
project, C# project, or VB Project. None of the project types are
interchangeable. i.e., I cannot add C++ modules to a C# project unless they
are in a DLL. Why not just have the ability to create a .net project that
supports modules that can be any of the supported languages, thus allowing
compilation to be intermixed in projects? I should be able to have a
project that contains both C# and C++ source files and have the compiler do
the compilation as necessary.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
va***@diebold.com
-----------------------------------
Jul 21 '05 #1
2 3366
Ken Varn <va***@diebold.com> wrote:
I have a couple questions/comments concerning dot net and the future of dot
net development. If someone could address these, please do so.

First of all, with the advent of .net and the use of namespaces, why can't I
reference a public class that is contained in an EXE from another EXE?
You can - just not with Visual Studio .NET :(
It seems that the only way to access other classes from other process is
through a DLL. In comparison to Java, where all compiled code goes into a
.class file, .net still keeps the separation of DLL and EXE. Why not
eliminate the EXE and DLL connotation and simply have a compiled output file
that can assume either role? i.e., Compiled modules have a new .NET
extension which can either function in the DLL or EXE role.
Yes, that would be nice - and would also mean it wouldn't need things
like a DOS header etc, which are really relics. On the other hand, we'd
then need a new loader which new about them...
Next, when building code I have to decide whether to create a managed C++
project, C# project, or VB Project. None of the project types are
interchangeable. i.e., I cannot add C++ modules to a C# project unless they
are in a DLL. Why not just have the ability to create a .net project that
supports modules that can be any of the supported languages, thus allowing
compilation to be intermixed in projects? I should be able to have a
project that contains both C# and C++ source files and have the compiler do
the compilation as necessary.


I think that would probably be a bad idea from a maintenance point of
view, but again you can do it with the command line compiler using an
assembly of many modules. That probably means you can do it with NAnt
too...

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2
In article <eN**************@TK2MSFTNGP12.phx.gbl>, va***@diebold.com
says...
I have a couple questions/comments concerning dot net and the future of dot
net development. If someone could address these, please do so.

First of all, with the advent of .net and the use of namespaces, why can't I
reference a public class that is contained in an EXE from another EXE? It
seems that the only way to access other classes from other process is
through a DLL. In comparison to Java, where all compiled code goes into a
.class file, .net still keeps the separation of DLL and EXE. Why not
eliminate the EXE and DLL connotation and simply have a compiled output file
that can assume either role? i.e., Compiled modules have a new .NET
extension which can either function in the DLL or EXE role.

Next, when building code I have to decide whether to create a managed C++
project, C# project, or VB Project. None of the project types are
interchangeable. i.e., I cannot add C++ modules to a C# project unless they
are in a DLL. Why not just have the ability to create a .net project that
supports modules that can be any of the supported languages, thus allowing
compilation to be intermixed in projects? I should be able to have a
project that contains both C# and C++ source files and have the compiler do
the compilation as necessary.


I don't know about you, but when I write software I first concentrate on
getting it to work in a special case. Then I generalize it. Then I
refactor and consider expanding the scope.

I suspect that's what is going on here. I would be surprised if all
your wishes weren't realized over the next few years.

-- Rick
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: gcook | last post by:
Hi, I've got an old perl program running on my webserver - so old that I haven't used a perl programmer in about two years :) (we've gone all php for a variety of reasons). Anyway, I'm...
1
by: Andrew MacLean | last post by:
Hello all, I am fairly new to .NET, but not to VB. I have a couple of questions. 1. Shared Code Base I have a solution with several different applications within it. Many of the...
2
by: Ross Micheals | last post by:
All I have some general .NET questions that I'm looking for some help with. Some of these questions (like the first) are ones that I've seen various conflicting information on, or questions that...
9
by: pankaj_wolfhunter | last post by:
Hi, I need some clearance on the following questions: 1) Does LOAD command updates indexes defined for a table? 2) Is REPLACE option in the LOAD command a logged operation? Help will be...
1
by: jason | last post by:
Hello everyone, I have some general questions about the DataTable object, and how it works. Moderately new to C#, I have plenty of texts describing the language, but not so much to reference...
6
by: Alex | last post by:
Hello I am intersting in developing and my background is VBA used in Excel and a brief intro to Java. I am interested in learning beyond VB and feel that C++ would be a very good language to...
6
by: Andy | last post by:
Someone posted this official proposal to create comp.databases.postgresql.general again. He wrote his own charter. As far as I know, he did not consult any of the postgresql groups first. There...
4
by: Viviana Vc | last post by:
Hi all, I've read the WindowsVistaUACDevReqs.doc documentation and I have done different small tests on Vista to understand the bahaviour and now I have a few questions. 1) If I create a...
2
by: SpotNet | last post by:
Scott M. Have your experiences shown you that programmers may give the best computer advice, analysis, and solutions even at the worst of times, for a PC user? ;~D Haven't crossed many Network...
3
by: =?Utf-8?B?Ymxi?= | last post by:
I am posting to the general discussion group - but I cannot find my postings... or replies...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.