Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Converting vc++.net code to c#

Converting vc++.net code to c#

Scheduled Pinned Locked Moved ASP.NET
csharpquestionc++databasemysql
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anveshvm
    wrote on last edited by
    #1

    Hi I have a desktop application written using VC++.NET. Majority of the code in it is written for manipulating a MySQL database. I am planning to migrate the desktop application to a Web application. So will I be able to use the existing VC++.NET code for it? If not, how can I convert it to C#? Is there any good free tools for conversion? rgds Anvesh

    N 1 Reply Last reply
    0
    • A anveshvm

      Hi I have a desktop application written using VC++.NET. Majority of the code in it is written for manipulating a MySQL database. I am planning to migrate the desktop application to a Web application. So will I be able to use the existing VC++.NET code for it? If not, how can I convert it to C#? Is there any good free tools for conversion? rgds Anvesh

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      anveshvm wrote:

      So will I be able to use the existing VC++.NET code for it?

      You can use it. Just create managed wrappers for your VC++ classes and use the wrapper classes with your web applications. If you are writting your wrapper in C#, you need to use P-Invoke for accessing C++ classes. If you use C++/CLI, you can use it directly by including necessary files into your managed class.

      Navaneeth How to use google | Ask smart questions

      A 1 Reply Last reply
      0
      • N N a v a n e e t h

        anveshvm wrote:

        So will I be able to use the existing VC++.NET code for it?

        You can use it. Just create managed wrappers for your VC++ classes and use the wrapper classes with your web applications. If you are writting your wrapper in C#, you need to use P-Invoke for accessing C++ classes. If you use C++/CLI, you can use it directly by including necessary files into your managed class.

        Navaneeth How to use google | Ask smart questions

        A Offline
        A Offline
        anveshvm
        wrote on last edited by
        #3

        "If you use C++/CLI, you can use it directly by including necessary files into your managed class." If I wrap with C++/CLI can I call the functions from asp.net ??

        N 1 Reply Last reply
        0
        • A anveshvm

          "If you use C++/CLI, you can use it directly by including necessary files into your managed class." If I wrap with C++/CLI can I call the functions from asp.net ??

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          anveshvm wrote:

          If I wrap with C++/CLI can I call the functions from asp.net ??

          Yes. But you will have problems if the VC++ classes are handling with MFC forms or other things which web application won't support.

          Navaneeth How to use google | Ask smart questions

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups