On Fri, 10 Dec 2004 13:01:11 +0100, Tim Bücker <ti*************@web.de>
wrote:
"Morten Wennevik" schrieb im Newsbeitrag news:...
Hi Morten,
first of all, thanks for the fast reply.
For all intents and purposes you do create real exes in C#. They compile
to filename.exe. You can furthermore create native code to speed up
execution.
This is what I meant: If you mean an exe as in a stand alone file being able to run on a sytem
without .Net installed, then no, but neither could you run a file
requiring vbrun300.dll or mfc42.dll if those weren't present.
But if you copy the dlls everything is ok.
I think in .NET it is not enough to just copy the needed dlls...
So is there a way if one includes all the needed dlls?
Greetings and thanks again,
Tim.
You are correct, it is simpler to just copy the dlls. A more appropriate
example would be DirectX which needs to be installed and not just copied.
There are third party solutions that encapsulate the .net program inside
its own framework, but I don't know how well they are and they are
certainly not free.
Then again, I don't think java is capable of running without the java
framework either.
For now, .net is installed by default from windows 2003 and later, but for
any other versions you need to ensure that it is installed before you can
run any .net programs. You can ship a single installation file (.net
redistributable) with your program much like DirectX is shipped with a
game.
--
Happy Coding!
Morten Wennevik [C# MVP]