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. Visual Basic
  4. using lib in vb

using lib in vb

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
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.
  • S Offline
    S Offline
    samira forooghi
    wrote on last edited by
    #1

    hi every one i have a lib that create it in vc. can i use it in vb? is there possibility using static library in visual basic? please guide me. with special thanks

    D 1 Reply Last reply
    0
    • S samira forooghi

      hi every one i have a lib that create it in vc. can i use it in vb? is there possibility using static library in visual basic? please guide me. with special thanks

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Sure. If it's a COM-based library, then you can add a reference to it in your projects Properties. If it's not COM-based, then you'll have to use P/Ivoke to get at the functions exported by the library. Google for "vb.net pinvoke" for examples.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Sure. If it's a COM-based library, then you can add a reference to it in your projects Properties. If it's not COM-based, then you'll have to use P/Ivoke to get at the functions exported by the library. Google for "vb.net pinvoke" for examples.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        S Offline
        S Offline
        samira forooghi
        wrote on last edited by
        #3

        thanks but how is it about vb6?

        D 1 Reply Last reply
        0
        • S samira forooghi

          thanks but how is it about vb6?

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          It's done the same way. If you just put "VB" in your post somewhere, everyone will assume you're talking about VB.NET, not VB6.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          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