C++ to C#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • A.M

    #1

    C++ to C#

    Hi,
    I am confortable with C++, VB6, VB.NET programming and looking for fast and
    efficient resources (book, url, ...) to switch to C#.

    I checked some C# books, they spent alot of pages to teach me C# syntax(
    which is similar to C++) and also .NET framework APIs (which i already know
    them through VB.NET programming)

    If i can find right resource, I should be able to transfer my current
    VB.NET/C++ skills to C# in one day.

    Could anyone refer me to any book title/url that helps me?


    Any help would be apprecited,
    Ali


  • ¸®ÇÙ\(ÀÌÁø¼®\)

    #2
    Re: C++ to C#

    msdn ^^;;

    --
    Have a Good time ~^-^a
    ::::::::::::::: ::::::::::::::: ::::::::::
    ¡Ømsn:leehack@k orea.com
    ¡Øicq:#44973062
    ¡Ønateon:leehac k
    ¡Øbuddybuddy:le ehack
    ¡Øtachy:leehack 1
    ¡Ømail:leehack@ korea.com
    ::::::::::::::: ::::::::::::::: ::::::::::
    "A.M" <IHateSpam@sapm 123.com> wrote in message
    news:#g23zIxrDH A.572@TK2MSFTNG P11.phx.gbl...[color=blue]
    > Hi,
    > I am confortable with C++, VB6, VB.NET programming and looking for fast[/color]
    and[color=blue]
    > efficient resources (book, url, ...) to switch to C#.
    >
    > I checked some C# books, they spent alot of pages to teach me C# syntax(
    > which is similar to C++) and also .NET framework APIs (which i already[/color]
    know[color=blue]
    > them through VB.NET programming)
    >
    > If i can find right resource, I should be able to transfer my current
    > VB.NET/C++ skills to C# in one day.
    >
    > Could anyone refer me to any book title/url that helps me?
    >
    >
    > Any help would be apprecited,
    > Ali
    >
    >[/color]


    Comment

    • Michael Culley

      #3
      Re: C++ to C#

      "A.M" <IHateSpam@sapm 123.com> wrote in message news:#g23zIxrDH A.572@TK2MSFTNG P11.phx.gbl...
      shared -> static
      sub -> void
      friend -> internal
      end * -> }
      sub new -> name of class
      destructor (I don't know the syntax in vbnet) -> ~name of class
      MyBase -> base
      Me -> this
      optional -> doesn't exist, use overloads.
      ByVal -> this is the default, leave blank
      ByRef -> ref
      MyArray(0) -> MyArray[0]
      _ (at end of line) -> just go to next line.

      Sub New()
      Base.New
      ->
      MyClassName() : base()

      public property Get SomeProp as int
      ->
      public int SomeProp
      {
      get { return privatevalue; }
      set { privatevalue = value; }
      }

      Dim X as New Object()
      ->
      object X = new Object();

      public property Get SomeProp(ByVal Index as Int) as Int
      ->
      public this[int Index]
      {
      get { return ... ; }
      }

      that's all I can think of at the moment, I'm sure others can fill in the blanks.

      --
      Michael Culley


      Comment

      • Jeffrey Tan[MSFT]

        #4
        RE: C++ to C#


        Hi,

        Thanks for posting in this group.
        C# is a language specially for .Net programming. C# and VB.net all use .Net
        Framework class library to work.
        C#'s syntax is similar with C++, but for the internal machinism it is more
        similar with VB.net. They are all event-driven and encapsulate the
        low-level windows message and APIs.
        So as I think, learnning C# consist of 2 parts: C# language syntax and
        common used .Net Class library.
        If you already familar with VB.net, I think it is easy to move to C# world,
        you just need translate your code syntax.
        The MSDN gives you a full document for C# .net programming.(Bo th C# syntax
        and .Net class library)

        If you still have something unclear, please tell me the difficulty.

        Best regards,
        Jeffrey Tan
        Microsoft Online Partner Support
        Get Secure! - www.microsoft.com/security
        This posting is provided "as is" with no warranties and confers no rights.

        Comment

        • Jeffrey Tan[MSFT]

          #5
          RE: C++ to C#


          Hi,

          Oh, so far as I think, if you are familar with C# syntax and class library,
          but still unclear about .Net programming.
          I think the problem may be the CLR(.Net Common Language Runtime).
          For CLR, I think Jeffrey Richter's "Applied Microsoft .Net Framework
          Programming" is a good book for the general .Net programming.
          For exmaple, managed types, the concept of assembly, attribute, delegate,
          interface, event, GC etc.

          Hope this helps,
          Best regards,
          Jeffrey Tan
          Microsoft Online Partner Support
          Get Secure! - www.microsoft.com/security
          This posting is provided "as is" with no warranties and confers no rights.

          Comment

          • Paul Robson

            #6
            Re: C++ to C#

            A.M wrote:
            [color=blue]
            > Hi,
            > I am confortable with C++, VB6, VB.NET programming and looking for fast and
            > efficient resources (book, url, ...) to switch to C#.
            >
            > I checked some C# books, they spent alot of pages to teach me C# syntax(
            > which is similar to C++) and also .NET framework APIs (which i already know
            > them through VB.NET programming)
            >[/color]

            If you know VB.NET that well, a transfer to C# should be uncomplicated
            as the languages are pretty similar - the syntax probably accounts for
            the majority of the differences :)

            Comment

            • Jesse Liberty

              #7
              Re: C++ to C#

              Take a look at the msdn article: "C++ -> C#: What you need to know to move
              from C++ to C#"
              http://msdn.microsoft.com/msdnmag/is...p/default.aspx




              "A.M" <IHateSpam@sapm 123.com> wrote in message
              news:%23g23zIxr DHA.572@TK2MSFT NGP11.phx.gbl.. .[color=blue]
              > Hi,
              > I am confortable with C++, VB6, VB.NET programming and looking for fast[/color]
              and[color=blue]
              > efficient resources (book, url, ...) to switch to C#.
              >[/color]


              Comment

              • A.M

                #8
                Re: C++ to C#

                Thanks alot for help. That was sort of articles i am looking for.
                Ali

                "Jesse Liberty" <jliberty@liber tyassociates.co m> wrote in message
                news:4Yadnb42N_ X2eyGi4p2dnA@sp eakeasy.net...[color=blue]
                > Take a look at the msdn article: "C++ -> C#: What you need to know to move
                > from C++ to C#"
                > http://msdn.microsoft.com/msdnmag/is...p/default.aspx
                >
                >
                >
                >
                > "A.M" <IHateSpam@sapm 123.com> wrote in message
                > news:%23g23zIxr DHA.572@TK2MSFT NGP11.phx.gbl.. .[color=green]
                > > Hi,
                > > I am confortable with C++, VB6, VB.NET programming and looking for fast[/color]
                > and[color=green]
                > > efficient resources (book, url, ...) to switch to C#.
                > >[/color]
                >
                >[/color]


                Comment

                Working...