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. Managed C++/CLI
  4. How to make Managed DLL in VC to use in VB.net

How to make Managed DLL in VC to use in VB.net

Scheduled Pinned Locked Moved Managed C++/CLI
tutorialcsharphelp
3 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.
  • U Offline
    U Offline
    User 16611
    wrote on last edited by
    #1

    I developed one DLL in VC6 through win32 dll. Then i called this dll in vb6 and i got accurate result. No problem at all. Now i am trying to use this dll in vb.net but result is not accurate. The reason is vc6 produce unmanage dll that vb.net cannot use. Now i need to make Managed dll. Can you guide me step by step to make Managed Dll and send me small example for Managed DLL. Should i use VC6 or VC.net for Manage dll development. In the example use the function to get square of a number like below int squareMe(int x) { return (x*x); } Hope to get reply soon

    J R 2 Replies Last reply
    0
    • U User 16611

      I developed one DLL in VC6 through win32 dll. Then i called this dll in vb6 and i got accurate result. No problem at all. Now i am trying to use this dll in vb.net but result is not accurate. The reason is vc6 produce unmanage dll that vb.net cannot use. Now i need to make Managed dll. Can you guide me step by step to make Managed Dll and send me small example for Managed DLL. Should i use VC6 or VC.net for Manage dll development. In the example use the function to get square of a number like below int squareMe(int x) { return (x*x); } Hope to get reply soon

      J Offline
      J Offline
      John M Drescher
      wrote on last edited by
      #2

      I am not an expert but .net should be able to use a unmanaged dll without recompiling. I am not sure how to do this though. John

      1 Reply Last reply
      0
      • U User 16611

        I developed one DLL in VC6 through win32 dll. Then i called this dll in vb6 and i got accurate result. No problem at all. Now i am trying to use this dll in vb.net but result is not accurate. The reason is vc6 produce unmanage dll that vb.net cannot use. Now i need to make Managed dll. Can you guide me step by step to make Managed Dll and send me small example for Managed DLL. Should i use VC6 or VC.net for Manage dll development. In the example use the function to get square of a number like below int squareMe(int x) { return (x*x); } Hope to get reply soon

        R Offline
        R Offline
        Roger Stewart
        wrote on last edited by
        #3

        riaz_muhammad wrote: Can you guide me step by step to make Managed Dll and send me small example for Managed DLL. Refer to the Visual Studio Walkthroughs[^] to get started with C++.NET. riaz_muhammad wrote: Should i use VC6 or VC.net for Manage dll development. You can not use VC6 to create a managed DLL. riaz_muhammad wrote: Now i am trying to use this dll in vb.net but result is not accurate. The reason is vc6 produce unmanage dll that vb.net cannot use. Now i need to make Managed dll. You CAN use your unmanaged DLL from VB.NET. Refer to the following MSDN help lik, Consuming Unmanaged DLL Functions[^]. Roger Stewart "I Owe, I Owe, it's off to work I go..."

        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