|
Hello!
OK - I know you have to install the .NET Framework on the machine you want to run your .Net-Application on, because it is not native code in your MyApp.exe. Now there's a tool called "Ngen.exe", which builds native code from any assembly. You will find the result then in your assembly-cache under
\%WINDIR%\assembly\NativeImages1_vx.x.xxx\MyApp\xxxxx\ (use Command-Prompt)
If you copy this native-code-file to another directory and start it, it only says, that it is no real Win32 program.
Could it be possible, to convert all used assemblies to native code and then run them without the framework? Or am I absolutely wrong?
|
|
|
|
|
That's not quite right.
Here's my take on the ngen util.
It does the complete JIT-compile for your EXE, but doesn't fold in the necessary .NET FCL classes. IE your app will still be xKB + 20 MB.
If it did do what you suggested, al a Delphi, then there would be no need for the .NET framework.
Cheers,
Simon
"I get paid for my brain and my thinking in several obscure worlds", Olli, The Lounge
|
|
|
|
|
|
I just got started writing Windows-Apps in C++ and C#. The .Net concept seems to me much easier, exspecially because it has a "real & full" object oriented structure and not that confusing ResourceFile-concept of MFC. If I use a button, I can see how it is instantiated, properties are set etc. As a bottom up C++ Learner it is somehow confusing to me, to describe Buttons etc. in Resourcefiles instead of coding them into real c++ sourcecode. The big disadvantage I see at the moment is, that even if you want to distribute a small Tool, you force the user to install the whole .NET framework. But maybe in some months, nearly every Windows-System will have this Framework already installed.
My Question is now: As a Newbie, should I better continue writing in C# or C++/MFC? And in this context, is it possible to use some more "advanced" features in .Net like playing sounds, use external dlls (lame, zip etc.) or accessing the serial port for example?
Thanx for your opinions
Mario
|
|
|
|
|
You should learn both. .NET makes things easy, but C++ is a more powerful tool. You can't know too much, so don't feel you need any limits, just learn anything you can.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
OK, thats absolutely right. Now here's the big but: Time. I think I've to decide which language to use (which Package I buy for my own). Maybe I continue with C++/MFC, because as my projects may get bigger, I don't want to hit on any limits and then rewrite the whole stuff in another language/environment.
|
|
|
|
|
If there is a Win32 API you want to call, you can call it in your .NET application. With that said you can do just about anything with .NET that you can with C/C++ the question now becomes, should you?
You have to remember that a .NET app will run about 80-90% slower than the C/C++ app that does the same thing. If your program can tolerate that then there isn't any reason not to use it unless you need to target Win95.
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
Good hint- Thanx. Maybe I'll call ngen on all my assemblies first to speed up the whole thing. On todays PCs a "normal" App (no big calculations etc.) should work, I think. And as I learned how to import extern dlls today - there doesn't seem to be any big restrictions left. Hopefully the C#-community will get as big as the MFC-Scene is today - that helps a lot on solving problems.
Mario
|
|
|
|
|
James T. Johnson wrote:
You have to remember that a .NET app will run about 80-90% slower than the C/C++ app that does the same thing
I think this is an exaggeration. Where did you get that information ?
There are so many different types of program.. that statement sounds unreal.
No offense
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
I'm pretty sure the figure came from the DOTNET mailing list from either someone at MS or John Lam who did a lot of different tests regarding IL -> x86 generation; I'm leaning towards it being John because that would have been the context to get the figure out.
If thats the case the 80-90% figure is comparing the x86 code that the JIT produces versus the C++ x86 code that is produced.
James
Simplicity Rules!
|
|
|
|
|
The .NET Framework is now on Windows Update, at least for Win2K systems; I just checked Windows Update on my dad's computer (WinXP) and it wasn't listed there yet.
Thanks to Chris Anderson on the DOTNET mailing list for pointing out that it was on there
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
Can anyone let me know how to write RTF to XML in Dot net.
Thanks
|
|
|
|
|
Hi guys
I cant seem to create my own name for C# web services it give it a default name of webservice1, 2, 3 etc
I have seen in screenshots you can do it, but the edit box is disabled with the default name in it
Have i set it up wrong?
its the release version Prof
The Wudan Master
|
|
|
|
|
sorry, a word with no business with your question: your name remind me of the famous poet of acient China.
|
|
|
|
|
Hi Lucy
thats ok, its really from the film crouching tiger hidden dragon, i liked it a lot
Im english from the uk and have an ordinary real name
Wudan Master;)
|
|
|
|
|
Yo you all,
I've got Visual Studio .NET Beta 2. I would like to know whether it's usable or if I should strive to get R1 instead and quit installing the Beta?
|
|
|
|
|
Hi
The beta version was ok for C++ but when we tried to use if for web services We couldnt get a web refference from a deployed web service.
but if you are using it on your own IIS Server then I had no problems
Im not a VB person so I dont know about that;)
Wudan MAster
|
|
|
|
|
I just got Visual Studio .NET enterprise. Its says I need NT 4 or Win 2000. Will it work on Windows 98?
Thanks.
|
|
|
|
|
No,it does not work on windows98.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
Anyone knows if it's possible to download the symbols for all the .NET dll's?
I have the symbols for Windows XP installed, and would really like to get the symbols for .NET also...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
I have a project:
-Research about XDE.NET and write a program to desmontrate.
But I don't know anything in .NET and XDE.NET
Can you help me ?
Hung Son
A Vietnamese student
i-g.hypermart.net
dlhson2001@yahoo.com
|
|
|
|
|
I think it refers to Rational XDE.NET, search on www.rational.com
it's a pretty powerful tool from rational.
You can download a trial version.
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
I like it too. But I didn't find document about it. I have just known Rational XDE Professional has been designed by ground-up for developers. XDE stands by eXtended Development Environment.Its unique, tightly integrated support for Microsoft Visual Studio .NET allows Rational XDE Professional users to work in a single environment, avoiding the need to switch between many different, non-integrated tools.
If you know more and you have books, links, .... about XDE.NET, can you send me?
Thanks a lot.
Only Love!
|
|
|
|
|
Sorry, I don't have any documentation, just the trial. You can see a few demos on their site.
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
Hi,
all
I have create a new asp.net web service ,and I put the whole solution in the /wwwroot/webserive.
In another window application, I use "add new web reference " to import the web service .I input "http://localhost/webservice/helloworld.asmx" in the
address line,and then the system display a dialog to prompt
me to download the helloworld.asmx file to my own local machine. So I want to know why? Could I only use the web service on the condition that I download it to my own machine?
Your advaced help will be appreciated!
Regards.
|
|
|
|