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 / C++ / MFC
  4. possible to provide VB app access to VC++ dll?

possible to provide VB app access to VC++ dll?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++tutorialquestionannouncement
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.
  • M Offline
    M Offline
    michael thomas
    wrote on last edited by
    #1

    Hi, Thank you for stopping by. I have a number of dlls written for VC++ 6 and I have been asked to make them available to a VB app (perhaps in the form of a .def file). I would be very grateful to know what or how to go about doing this. Any pointers would be much appreciated - the possibility of PAID work after so long is certainly a good incentive - I am sure you understand. Please note that I am a VC++ programmer on version 6. I have yet to transition to .NET. Thanks Michael

    D 1 Reply Last reply
    0
    • M michael thomas

      Hi, Thank you for stopping by. I have a number of dlls written for VC++ 6 and I have been asked to make them available to a VB app (perhaps in the form of a .def file). I would be very grateful to know what or how to go about doing this. Any pointers would be much appreciated - the possibility of PAID work after so long is certainly a good incentive - I am sure you understand. Please note that I am a VC++ programmer on version 6. I have yet to transition to .NET. Thanks Michael

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Assuming the functions/classes in the C++ are exported, why not just add Declare Function **NameOfFunction** Lib "**NameOfLib**" (**ParameterList**) As **ReturnType** to the top of your VB modules?

      M 1 Reply Last reply
      0
      • D David Crow

        Assuming the functions/classes in the C++ are exported, why not just add Declare Function **NameOfFunction** Lib "**NameOfLib**" (**ParameterList**) As **ReturnType** to the top of your VB modules?

        M Offline
        M Offline
        michael thomas
        wrote on last edited by
        #3

        Hi David, Thank you for responding. I have never produced a dll so I am completely ignorant of the terms, which I know is going to make this coding difficult. I guess I will have to go away and get familiar with how dlls are coded and generally fiddle around with them, since at this point I don't even know what 'exported' means. At least you have given me a starting point and thanks for that. Thanks Michael

        V 1 Reply Last reply
        0
        • M michael thomas

          Hi David, Thank you for responding. I have never produced a dll so I am completely ignorant of the terms, which I know is going to make this coding difficult. I guess I will have to go away and get familiar with how dlls are coded and generally fiddle around with them, since at this point I don't even know what 'exported' means. At least you have given me a starting point and thanks for that. Thanks Michael

          V Offline
          V Offline
          vcplusplus
          wrote on last edited by
          #4

          Check out the web site below Calling DLL Functions from Visual Basic Applications http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_calling_dll_functions_from_visual_basic_applications.asp

          M 1 Reply Last reply
          0
          • V vcplusplus

            Check out the web site below Calling DLL Functions from Visual Basic Applications http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_calling_dll_functions_from_visual_basic_applications.asp

            M Offline
            M Offline
            michael thomas
            wrote on last edited by
            #5

            Excellent resource. Thank you so much! I think this will do it. Thanks again. You are a star! Michael

            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