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. General Programming
  3. C#
  4. Can we use DLLs developed in VC++ 6.0 into C#.net

Can we use DLLs developed in VC++ 6.0 into C#.net

Scheduled Pinned Locked Moved C#
csharpc++
5 Posts 3 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
    Azghar Hussain
    wrote on last edited by
    #1

    Hi Everybody, Can we use DLLs developed in VC++ 6.0 into C#.net Thanks. If you have faith in the cause and the means and in God, the hot Sun will be cool for you.

    A R 2 Replies Last reply
    0
    • A Azghar Hussain

      Hi Everybody, Can we use DLLs developed in VC++ 6.0 into C#.net Thanks. If you have faith in the cause and the means and in God, the hot Sun will be cool for you.

      A Offline
      A Offline
      Anthony Mushrow
      wrote on last edited by
      #2

      Yep (i guess), a DLL is A DLL, no matter where it was made. If i'm wrong you can shoot me :laugh:

      1 Reply Last reply
      0
      • A Azghar Hussain

        Hi Everybody, Can we use DLLs developed in VC++ 6.0 into C#.net Thanks. If you have faith in the cause and the means and in God, the hot Sun will be cool for you.

        R Offline
        R Offline
        Rob Philpott
        wrote on last edited by
        #3

        What sort of DLL is it? eg. COM/Vanilla/MFC extension.... Regards, Rob Philpott.

        A 1 Reply Last reply
        0
        • R Rob Philpott

          What sort of DLL is it? eg. COM/Vanilla/MFC extension.... Regards, Rob Philpott.

          A Offline
          A Offline
          Azghar Hussain
          wrote on last edited by
          #4

          DLL is ordinary one. It contains C functions. If you have faith in the cause and the means and in God, the hot Sun will be cool for you.

          R 1 Reply Last reply
          0
          • A Azghar Hussain

            DLL is ordinary one. It contains C functions. If you have faith in the cause and the means and in God, the hot Sun will be cool for you.

            R Offline
            R Offline
            Rob Philpott
            wrote on last edited by
            #5

            Ah ok. You can use existing functions in standard DLLs from C# using .NET interoperability. You do this by defining the prototype of the function you are calling in your C# code and marking this method with the [DllImport] attribute (stating what dll its in, entry point, calling convention etc). You can then call this function as if it were a normal .NET one. Details can be found at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemruntimeinteropservicesdllimportattributeclasstopic.asp[^]. Regards, Rob Philpott.

            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