Learning C# from a VS C++.NET background

  • Thread starter Thread starter Peter Oliphant
  • Start date Start date
P

Peter Oliphant

*** NOTE: Not sure where to post this, it's about both C++ and C#....I
assume this forum is ok ***

I've looked at some C# code, and it looks remarkably like C++. Will the
similarity help me or confuse me (i.e., if its very similar then differences
can be traps)? For example it looks like the '::' operator has been replaced
with the '.' operator...

Also, I assume code written in C++ can be 'mixed' with C# via making the C++
code into a library, yes (i.e., it is possible to access libraries written
in C++ when writing in C#)?

Thanks in advance for responses! : )

[==P==]
 
Calling unmanaged code from C# is more trouble and pretty much works
against the paradigm in my opinion.

Thanks, Tom! : )

Turns out I've written my code so far almost entirely in managed C++, so I
should be good in the 'paradigm' department....hehe : )

[==P==]

Tom Serface said:
I think it was a benefit for me. These things may help you:

http://www.andymcm.com/csharpfaq.htm
http://dotnet.oreilly.com/news/programmingCsharp_0801.html

If the code is managed you can write in any syntax and use it with others.
Calling unmanaged code from C# is more trouble and pretty much works
against the paradigm in my opinion.

Tom

Peter Oliphant said:
*** NOTE: Not sure where to post this, it's about both C++ and C#....I
assume this forum is ok ***

I've looked at some C# code, and it looks remarkably like C++. Will the
similarity help me or confuse me (i.e., if its very similar then
differences can be traps)? For example it looks like the '::' operator
has been replaced with the '.' operator...

Also, I assume code written in C++ can be 'mixed' with C# via making the
C++ code into a library, yes (i.e., it is possible to access libraries
written in C++ when writing in C#)?

Thanks in advance for responses! : )

[==P==]
 
Peter Oliphant said:
*** NOTE: Not sure where to post this, it's about both C++ and C#....I assume this forum is ok ***

I've looked at some C# code, and it looks remarkably like C++. Will the similarity help me or confuse me (i.e., if its very
similar then differences can be traps)? For example it looks like the '::' operator has been replaced with the '.' operator...

You would be terribly confused if you knew Java and Delphi as well.
With c++ alone you won't be confused too much <g>

--PA
Also, I assume code written in C++ can be 'mixed' with C# via making the C++ code into a library, yes (i.e., it is possible to
access libraries written in C++ when writing in C#)?

Thanks in advance for responses! : )

[==P==]
 
Back
Top