As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Please suggest any good books for learning how to use Component Object Model (COM) from C#.
I do not have (or know of) a book on this subject.
One invaluable resource I have used is the .NET Interoperability information found on MSDN: Interoperating with Unmanaged Code. It covers the overview, a number of general interoperability details, and how to expose COM to .NET and .NET to COM. For a general COM resource, however, it is rather sparse.
Happy coding.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Smalltalk supports a syntax feature called "message cascades". Cascades are being adopted by the Dart Programming language.
As far as I know, C# doesn't support this. Were they ever considered during the design of the language? Is it conceivable that they could appear in a future version of the language?
In VB.Net there is the with keyword which I believe is used for this purpose (correct me if I'm wrong on this), however in C# they decided that it can often hurt readability and left it out (good in my opinion).
Some short details can be found at the below link, however the link to the microsoft page is no longer working:
http://blogs.msdn.com/b/csharpfaq/archive/2004/03/11/why-doesn-t-c-have-vb-net-s-with-operator.aspx
Note: If anyone has the following link archived I would love to read it (as the link is not working):
http://msdn.microsoft.com/vcsharp/team/language/ask/withstatement/default.aspx
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Other than AWT, Swing, SWT (Java) - are there any good open source Java or C# UI libraries around? In particular, libs intended or at least usable for strategy gaming dev? (The visual appearance of the UI would need to be highly dynamic and easy to re-skin obviously.) Engines or "frameworks" which include this functionality are valid answers as well (of course I even more doubt that those exist).
As far as I can tell - there's not a single thing like this out there. Anyone able to prove me wrong?
Not sure about Java, but for C# I would look at either XNA or Unity to start out with.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I would like to be able to capture screenshots with C++ 'using a lot of compression', and/or more importantly 'uses very few system resources when capturing'. I have been looking for concise, well-written examples, and I think I have found a few. What I've found is that most of the examples are in C# and very few are in C++. I'm sure there's a somewhat simple/common answer, and it's foolish to ask. Why do people use C# instead of C++?
Why do people use C# instead of C++?
Because it's easier.
C++ gives you a lot of control over everything, and with that extra control comes extra responsibility and more work. If you just want to get something done quickly, using C# is usually sufficient.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
In our real life Java and C# both has a significant effect. Personally I love Java because of its complexity also I have experience in C# too. I want to know, from desktop application to robotics, web application to machine learning what are the fields which are possible in Java but not currently available in C# and vice versa. Thank you.
Given both languages are Turing complete, anything you can do in one language you can do in the other.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Does anyone know of an open source financial library that implements Yield To Maturity and other fixed income calculations? The library needs to be callable from .Net.
Here is a .NET implementation of all of Excel's financial functions, including yield to maturity.
Have you looked at Quantlib? Seems to offer a wide array of pricing tools and is callable from .Net, I believe. There's also a port to Java called JQuantLib as well, though I don't believe it implements everything in Quantlib quite yet.