473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

*** 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==]
Nov 17 '05 #1
3 867
I think it was a benefit for me. These things may help you:

http://www.andymcm.com/csharpfaq.htm
http://dotnet.oreilly.com/news/progr...harp_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" <po*******@RoundTripInc.com> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
*** 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==]

Nov 17 '05 #2
> 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" <ts******@msn.com> wrote in message
news:Oq****************@TK2MSFTNGP09.phx.gbl...I think it was a benefit for me. These things may help you:

http://www.andymcm.com/csharpfaq.htm
http://dotnet.oreilly.com/news/progr...harp_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" <po*******@RoundTripInc.com> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
*** 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==]


Nov 17 '05 #3
"Peter Oliphant" <po*******@RoundTripInc.com> wrote in message news:ut**************@TK2MSFTNGP09.phx.gbl...
*** 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==]

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Rick | last post by:
I know this is an open-ended question. But, can someone recommend a path for learning Java. I have some minimal background in programming, C and C++. Time constraints ony allow me a few hours in...
2
by: AnOvercomer02 | last post by:
Hi. What is the best way to learn Python? None of the local schools near me teach any courses on the topic. Thanks. -- Cody Houston AnOvercomer02@webtv.net
9
by: John Ilves | last post by:
I've read an online C tutorial and a book but I don't really know enough to work on any real projects. What comes in between in the process of learning C? Can anyone direct me to some good websites...
8
by: scorpion53061 | last post by:
Hi, I am a vb.net guy......(I know boo hiss LOL) I was thinking of learning C# as well. Can I expect a hard road of it as far as a learning curve? As as side note, what made you choose...
3
by: beachboy | last post by:
hi all, would you pls advise any good books for learning C# (web related back-end programming) with java background? thanks for your suggestion. beachboy
5
by: Falc | last post by:
Hi there... I have been looking at learning Python, so far it looks like an absolutely grat language. I am having trouble finding some free resources to learn Python from. I am on windows and...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
78
by: arnuld | last post by:
hai all, i am standing on a "crossroad to C++". I am here in front of you as i have a problem. i will be brief. Please do not think: "arnuld is sick", i am really struggling & doing hard-work to...
7
by: white lightning | last post by:
Hi all, I need to learn asp.net in a quick and smart way. I am pretty good with PHP but I am an absolute newbie with .net. I am even not very familiar with Visual Basic and other windows...
26
by: K.J.Williams | last post by:
Hello, A friend and I want to learn PHP but we have two totally different programming backgrounds. I have experience with procedural programming in C, and he has experience with Visual BASIC....
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.