|
Looks ideal, thanks!
Now if I hadn't just blown my book budget on those UML books...
------------
Tomorrow is the same day as today was yesterday.
|
|
|
|
|
Inheriting from MarshalByRefObject doesn't hurt anything if you're not using remoting. Heck, almost everything in the Windows Forms does! (those that inherit from Control , which inherits from Component , that inherits from MarshalByRefObject ). It that way with any OO design and inheritance - only use what you want to. It's field values that take up space in memory - not a gazillion methods and properties. And such methods and properties won't do anything unless they're called. Heck, most of those controls aren't even remoting because they're not serializable (although you could either implement an ISerializationSurrogate for them, or extend them and mark your control as [Serializable] ).
The best place to put such an object is in an assembly that both the client and server share, such as the one where the remoting interface is (assuming you're doing it that way, and you might as well since you are using a shared assembly now - it makes for easier maintainence rather than generating a new one using soapsuds.exe or something when you change your remoting object).
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
hello ,
Hello i design one software for graphics systems.
It consists of more graphical calculations like AutoCAD.
Which language i should use for that?
C++ with MFC or C# ?
I know Java will be the
worst for this kind of applications.
Can i expect performance of C# equal to C++ in my case?
"They can because they think they can" - Voltaire
|
|
|
|
|
|
Quake.NET is written with native code, not C# code;
RSS feed
|
|
|
|
|
For something like CAD, you would be using a graphics technology like OpenGL or DirectX to do the heavy work, so there wouldn't be much need to worry about what language it was written in.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Actuall Java3D is based on DirectX so it doesnt really matter. Obviously it would be the easiest with MFC so You designate a view, but you can do it in C# and use the frameowrk classes. But you wont get the speed and since its cad its not that intensive so either shouldnt matter
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Should we wait for a C# with some better performance?
Don't forget, that's Persian Gulf not Arabian gulf!
|
|
|
|
|
its more of a fact that your running managed code instead of c++ so the performance is still good. For cad drawings thats not rotating 3d rasterized images you wont even notice the speed difference.
I develop games in direct3d so I see it right away
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
kumaru_san wrote:
Which language i should use for that?
C++ with MFC or C# ?
Why would you want .NET?
For anything related to graphics and speed I personally would use C++ and maybe MFC. If I had a need for the .NET frameworks I would probably use MC++. Speed and C# (or VB.NET) does not go hand in hand. The speed is fine for business applications or data driven applications but graphic driven apps need a core C++ at this time.
Rocky Moore <><
|
|
|
|
|
C# is a managed language.
It means and seems that we should never wait for a c# with some better performance. Do you agree?
Don't forget, that's Persian Gulf not Arabian gulf!
|
|
|
|
|
Startup times will get faster, but probably not a lot faster. Also, some BCL classes are slower than their C++ counterparts (but then, some BCL classes are faster than the C++ ones).
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
hello
my question is do .NET base class library functions
been written from scratch or do they call the underlying
Win32 API ?
Are Win32 API (classic) and .NET library two
entire different entities?
Kumar.
"They can because they think they can" - Voltaire
|
|
|
|
|
kumaru_san wrote:
Are Win32 API (classic) and .NET library two
entire different entities?
In most cases, no. The .NET BCL functions/classes usually use the Windows API underneath. However, the layer of abstraction they provide in many cases allows one to create implementations of the base classes for other OSes. For instance, the Mono project has created implementations of many BCL classes for Linux and Mac OSX.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
jdunlap wrote:
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
you shrunk the quote
how come teacher
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
Are you asking me why I made the quote be in small letters? I did that so that my sig wouldn't take up too much space.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
hi !
i want to add buttons to the dropdownButton(when i click the dropdown style button it will show more buttons in the dropdown menu)......
how i can do that.... i m able to add only contextMenu... but i want buttons....
Plz help me...
|
|
|
|
|
I got an email from windevnet yesterday concerning the performance of C# that people may want to check out:
"Does C# Measure Up"
How does C# and its libraries perform against C, C++, D and Java?
http://www.windevnet.com/
Interestingly, it mentions the "D" language, which I had never heard of before. Go figure.
My 20 favorite films:http://www.ymdb.com/user_top20_view.asp?usersid=8912
|
|
|
|
|
Doesn't seem to be anything to read there, just advertising that it's coming in the next issue?
I've never heard of D either, maybe it's a typo or they haven't finalized the article yet?
------------
Tomorrow is the same day as today was yesterday.
|
|
|
|
|
John Cardinal wrote:
Doesn't seem to be anything to read there, just advertising that it's coming in the next issue?
Did you look below the ads? There's plenty more after the ads, and more after that below some more ads.
John Cardinal wrote:
I've never heard of D either
As they said, it's written by one person, and marketed by a small company, so it's not too well-known.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
jdunlap wrote:
John Cardinal wrote:
I've never heard of D either
As they said, it's written by one person, and marketed by a small company, so it's not too well-known.
That and theres what I think 2000 languages out there. I think thats what my java instructor told me. Boy that was grueling. All I ever heard was how much worse c++ is compared to Java. That darn SUN
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
John Cardinal wrote:
I've never heard of D either, maybe it's a typo or they haven't finalized the article yet?
Isn't that the new language that Microsoft is putting out? They are supposed to have a visual version like VC, of that also, right? I do not know how popular Microsoft's VD 1.0 will be, I am sure people will want to get rid of it quickly...
(This was a late night attempt and humor )
Rocky Moore <><
|
|
|
|
|
D is a programming language that was designed as a successor to C/C++, but to include such things as garbage collection, design by contract, lightweight objects, RAII, compiles to native code, etc, etc. Think of a mix between C# and C++, leaning towards C++. It has some very interesting concepts.
It's designed and implemented by Walter Bright, a C/C++ compiler implementor from way back (I remember his company Zortech, later Zorland).
Cheers, Julian
Program Manager, C#
This posting is provided "AS IS" with no warranties, and confers no rights.
|
|
|
|
|
|
Conclusions: C++ has better performance in some areas, and C# has better performance in others, and there are a few places that Java outperforms C# and/or C++, but on the whole C# has better performance than Java. C++ starts up faster than C#, and C# has a number of new, modern language features.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|