|
If I could quote you from the other post
but you will get many nay sayers and disenters who simply rip C# off because A: it is from Microsoft and B: they love their C++ and for some odd reason are so loyal they can't see the need for C#.
Check out my enthusiasm for GDI+ to see I'm not someone who hates M$ automatically. No, I don't see a need for C#, nor do I see that as odd.
Why is C++ more cross-platform compliant? Have I been misled in thinking that .NET with C# actually makes the cross-platform development a bit easier (well at least until someone ports .NET to the other platforms of course.)
1. C++ is EVERYWHERE. Yes, GUI stuff will always need rewriting, unless you use tcl or something, but you can, for example, use OpenGL for graphics in C++ and know that if you use standard components where possible ( like STL ) you won't have much work in getting your code to compile into a native app on another platform.
2. This is the brilliance of it - it won't be M$'s fault that C# is Windows only, it's be the fault of those pesky Linux/Mac guys who didn't get with the program and write CLR's for their platforms. C# is the new Java, so if it's the panacea, we already have total cross platform development and the world has already been changed for the better
3/ Make it easier for VB users to move to a language that is almost, but not quite C++ Well isn't that a good thing? I am a VB programmer (put down the rocks and flail pls! ) and am really chuffed that now with C# I can get so much power but not have to waste my time learning a frustrating language like C++. I want to build solutions, not wrestle with syntax and conventions.
I'm pleased for those who have not taken the time to learn C++ that you can write better programs than you could before, but I maintain that C++ is not that hard. You're saying that VB has no syntax rules or conventions ? I didn't realise it was that pathetic.
Getting it to work cross-platform was like trying to get a VB programmer into C++, bloody difficult.
What I find amusing is the assumption that C# will be any different.
I am (still) waiting for my beta 2 CD. I will learn some C# and if someone pays me I will be happy to use it. But right now I am amused and dismayed at a few things.
1/ Young programmers abandoning C++ for a language that still has no commercial compilers officially released, let alone has stood the test of any time
2/ The assumption that C++ is 'too hard', which makes me think the industry is being dumbed down, which is itself a step to our jobs paying as well as the average office clerk.
3/ The fact that M$ now admit VB is too limited. How long before they admit the same of a language that has no templates, no pointers, etc. ?
All in all, I am adopting a wait and see attitude and am more than happy to play devils advocate to all the hysteria that seems to be doing the rounds right now. If it results in better solutions then so much the better. If it allows people who don't have the time or the capacity to learn C++ to develop the solutions they need, I'm all for languages being easy to use ( I thought C++ *was* such a language though ). If you find C# useful, more power to you. For me it is as useful as a catflap in an elephant house.
Christian
#include "std_disclaimer.h"
The careful application of terror is also a form of communication.
Eagles may soar, but weasels don't get sucked into jet engines.
|
|
|
|
|
C# is a new programming language from Microsoft. Essentially it is Microsofts version of Java but it runs atop the .NET platform.
What it means to me is that I have the ease-of-use of Visual Basic but the power of C++.
Have a look at these links for more info:
C# Introduction and Overview
Sharp New Language: C# Offers the Power of C++ and Simplicity of Visual Basic
So far I am impressed with C#, but you will get many nay sayers and disenters who simply rip C# off because A: it is from Microsoft and B: they love their C++ and for some odd reason are so loyal they can't see the need for C#. By no means must a C++ expert change to C#, but everyone should give it a try and make their own opinion after trying it out.
regards,
Paul Watson
Cape Town, South Africa
e: paulmwatson@email.com
w: vergen.org
|
|
|
|
|
I'm trying to create a Windows Service (not a Web Service) in C# with Beta 2.
I create a new Windows Service, and add the installer. I didn't do anything else - I just wanted a minimum windows service. When I try to install it with InstallUtil.exe, I get the following output:
An exception occurred during the Install phase.
System.NullReferenceException: Value null was found where an instance of an obje
ct was required.
The log it generates tells me the same info it prints out.
Has anybody written a windows service in C#? If so, could you tell me what I'm doing wrong? Thanks.
Craig Dodge
A catchy signature should appear here.
|
|
|
|
|
visit www.intellibench.com for free c# certification
|
|
|
|
|
On running of a C# webservice (built in Visual Studio .NET Beta 2) I am getting the following error:
<br>Compiler Error Message: CS0234: The type or namespace name 'Global' does not exist in the class or
namespace 'Service1.Service1' (are you missing an assembly reference?)<br><br>Source Error:<br><br> <br><br>Line 27: <br>Line 28: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]<br>Line 29: public class Global_asax : Service1.Global {<br>Line 30: <br>Line 31: private static bool __intialized = false;<br> <br><br>
Building the service works fine, but running it in IE produces the above error.
I would greatly appreciate any help as I can get VB.NET webservices to work but not C# webservices.
regards,
Paul Watson
Cape Town, South Africa
e: paulmwatson@email.com
w: vergen.org
|
|
|
|
|
I love it when a plan comes together... after much fiddling around I figured out how to get around the problem.
All you need to do is to bring up the properties of your project (right-click the Project in the Solution Explorer) and fill in the file name of your main Service or Webform in the Startup Object field.
That should solve the problem, it did for me.
regards,
Paul Watson
Cape Town, South Africa
e: paulmwatson@email.com
w: vergen.org
|
|
|
|
|
Does anyone has real performance bench-mark results using C# comparing to C++ or Java?
|
|
|
|
|
If anybody does, it's unlikely they'll be talking about them, as the BETA2 EULA prohibits publishing benchmark results.
|
|
|
|
|
Hi,
I am a beginner of C#,I don't know how to read the "C#" in English.Would u please tell me?
TKS!
***
We are making progress everyday!
At XiaoYu Workshop.
***
|
|
|
|
|
|
No worries Youngar, I also struggled at first and I am a born and bread englishman. The # does not refer to the word "hash" (as used in numbers) as I first thought but apparently to some component of writing music (how that relates to programming I have no clue).
You pronounce it "See Sharp".
regards,
Paul Watson
Cape Town, South Africa
e: paulmwatson@email.com
w: vergen.org
|
|
|
|
|
If you're determined that C# is a good idea, then I guess you'd buy a book, or look on the MSDN.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
Can anybody point me in the direction of some good samples of calling Win32 API functions from C#. Something a little more detailed than the MessageBox and GetSystemDirectory samples.
I'm trying to convert some c++ code that uses TAPI 2.x to c#. Any ideas whether the variable length structures that TAPI uses will cause c# problems?
Michael
|
|
|
|
|
Variable length structures aren't something you can do directly from C#; the marshaller wasn't designed to handle them.
Your best bet is to write a wrapper using the Managed Extensions to C++, and then call it from C#. If you send me some email, I'll send you a powerpoint presentation and some sample code I did a while back.
Eric
EricGu@microsoft.com
|
|
|
|
|
Hi! I’m new in .NET and I’m going start playing with C#.
I installed .NET FRAMEWORK BETA 2.
Does anyone know Inside C# by Tom Archer up today (BETA 2) or any other books which will concentrates on C#.
Best regards.
Igor.
|
|
|
|
|
See http://www.dotnetbooks.com.
|
|
|
|
|
Yes Igor. 'Inside C#' was written with Beta2. http://www.codeguru.com/announcements/dotnetbooks.html has a list of .NET books including which ones are written for beta2.
Please feel free to email me (tarcher@mindspring.com) if you have any specific questions about my book.
Cheers,
Tom
"Ya got lucky, ya lucky prick" - Keith McCready
|
|
|
|
|
I like the books published by WROX. I find then very good. The books gets the message accross on a professional level that i like.
|
|
|
|
|
I'd like to know if with C# is possible to develop Win32 native(EXE) application (in the "old" stile, without the need of CLR).
Thanks.
|
|
|
|
|
No, all C# applications require the runtime.
|
|
|
|
|
I am looking for some help with COM interop. I am trying to using a COM object from within a web service written in C#. Most of the methods exposed through the interface work fine, except for those that return a safearray of variants. Below is an example of one such method's definition in the .idl file.
HRESULT foo([in] SAFEARRAY(BSTR)* tags, [out, retval] SAFEARRAY(VARIANT)* values);
The COM object connects to a server process and I can see the server executing the request, but the following exception is thrown :
System.ArgumentException: Method's type signature is not Interop compatible.
Any ideas on what is happening?
Thank you,
Jason
|
|
|
|
|
Is there any where, which is be able to give me an short working sample using the principalpermission-class from .net?
like:
user peter is "admin" and calls method a_1 from class myClass.
user tom is "user" and calls method a_1 from class myClass and here is throw an principal-permission-Security-exception... because tom is not an admin.
but how i have this to write in c#?
greetings marian
marian@tfh-berlin.de
|
|
|
|
|
Good day.
I wrote a program about placing 8 queens to a chessboard. It found 92 combinations. Do u know the real answer?
Thank you
|
|
|
|
|
Why are you sure that the answer you got is wrong ? Why do you want to know ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
1. Can I use Global Message Hooking ?
(I saw "Microsoft.Win32.Interop.HookProc"
in .Net Framework SDK class view)
2. If it is possible, How can I use that?
3. How can I get another window handle?
|
|
|
|