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. C++ + Delphi

C++ + Delphi

Scheduled Pinned Locked Moved C / C++ / MFC
c++delphihelpquestion
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.
  • N Offline
    N Offline
    Ni m
    wrote on last edited by
    #1

    How can I use C++ Dll that contains class in Delpphi&& Help!! SOS!!

    B 1 Reply Last reply
    0
    • N Ni m

      How can I use C++ Dll that contains class in Delpphi&& Help!! SOS!!

      B Offline
      B Offline
      bikram singh
      wrote on last edited by
      #2

      Short answer: not possible cos delphi cannot use C++ obj/lib/dll files. in anycase, u cannot use the dll with a c++ if u dont have the lib file. i believe though there are some tools that can create a lib file from a dll (msvc++ has one i think) Bikram Singh

      P 1 Reply Last reply
      0
      • B bikram singh

        Short answer: not possible cos delphi cannot use C++ obj/lib/dll files. in anycase, u cannot use the dll with a c++ if u dont have the lib file. i believe though there are some tools that can create a lib file from a dll (msvc++ has one i think) Bikram Singh

        P Offline
        P Offline
        palbano
        wrote on last edited by
        #3

        >> delphi cannot use C++ obj/lib/dll files. That is not entirely accurate. They cannot use each others classes but they can access C calling convention exported functions from DLL’s. So the long answer is you would have to un-object orient the C++ class in a C++ DLL by exposing the functionality through a set of C style functions. Then the Delphi application can call the functions in the C++ DLL.

        "No matter where you go, there your are." - Buckaroo Banzai

        -pete

        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