Results 1 to 4 of 4

Thread: [RESOLVED] When do I start using C#

  1. #1
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 04
    Location
    CT
    Posts
    14,413

    Resolved [RESOLVED] When do I start using C#

    When is C# used?

    I'm writing unmanaged string manipulation functions in C++ right now - and calling them from VB code (using VS 2010).

    The VB code is needed for the httplistener and other I/O requirements.

    What could be needed to get the httplistener code into C++? Would that be where I would use C#?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 05
    Location
    Sydney, Australia
    Posts
    80,793

    Re: When do I start using C#

    C# is not a bridge between VB and C++. If you want to write managed C++ code then you would use C++/CLI, which is basically C++.NET. C# is basically just an alternative to VB.NET with basically all the same features but a C-based syntax instead of a VB-based syntax.

    It actually may be the case that you could replace your unmanaged code with C#. The one genuine advantage that C# has over VB.NET is support for pointers. As such, you may be able to write your string manipulation code in C# and then either reference that assembly in a VB.NET app ro simply write the whole app in C#.

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 04
    Location
    CT
    Posts
    14,413

    Re: When do I start using C#

    Thank you for that clarification - it's certainly a complex C story that goes on here in the MS world...

    If I wanted to stay with C++ - and not go to C# - would I work with httplisteners by delving into the windows api documentation?

    Also - seems to me that managed vs unmanaged is basically how the runtime deals with memory and such - is there more to the distinction?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #4
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 04
    Location
    CT
    Posts
    14,413

    Re: When do I start using C#

    Actually found a nice explanation here

    http://social.msdn.microsoft.com/For...-cb92d2008a29/

    I'm going to mark this thread resolved as C# is not where I am looking to move into...

    Thanks!

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •