How do I use Visual Studio 2008 to show the result of a C function in a website

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • urib
    New Member
    • Nov 2009
    • 14

    How do I use Visual Studio 2008 to show the result of a C function in a website

    Please give me step by step instruction

    I guess that I start by
    file->new website but the problem is that I have no option to choose C++(only visual basic and C#)

    Uri
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    Visual Studio doesn't support using C++ for ASP.NET.

    It's possible to do what you wish, but you will have to use the command line to compile it.



    Do you have to use C++? C# is fairly easy to learn. And you can even use C/C++ DLLs if you need to.

    Comment

    • urib
      New Member
      • Nov 2009
      • 14

      #3
      It is better if I can use C++ because I do not like to translate the functions that I have in C to C#

      If I can use C/C++ dll in C# then I would like to know how to do it.

      Uri

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4
        Look at the C# example in this MSDN article:
        Indicates that the attributed method is exposed by an unmanaged dynamic-link library (DLL) as a static entry point.

        Comment

        • urib
          New Member
          • Nov 2009
          • 14

          #5
          Originally posted by insertAlias
          Look at the C# example in this MSDN article:
          http://msdn.microsoft.com/en-us/libr...attribute.aspx
          Thanks

          Unfortunately your link does not give me clear instructions what to do.

          I guess that
          I start by new website when I choose
          asp.net website
          file system and
          C#

          I do not understand what I do next.

          I have some code in the link both for Visual C++ and later for C# below the examples but I do not understand where do I put it.

          Comment

          Working...