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. Mix VC++ and Delphi

Mix VC++ and Delphi

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

    Hello i'm starting a project with a friend who work with delphi 7, and i don't know how difficult could it be to mix two languages; we decided to use dlls and a semi plugin framework to work, but for example: the way delphi data access is (at least for me) too much diferent; can i make classes in C++/MFC and use in delphi or viceversa?, could i make controls in delphi to use with C++/MFC?, etc. Thanks in advance, i'll appreciate all your comments on this.

    B 1 Reply Last reply
    0
    • N NMiceli

      Hello i'm starting a project with a friend who work with delphi 7, and i don't know how difficult could it be to mix two languages; we decided to use dlls and a semi plugin framework to work, but for example: the way delphi data access is (at least for me) too much diferent; can i make classes in C++/MFC and use in delphi or viceversa?, could i make controls in delphi to use with C++/MFC?, etc. Thanks in advance, i'll appreciate all your comments on this.

      B Offline
      B Offline
      Bob Stanneveld
      wrote on last edited by
      #2

      Hello, Functions in C++ use the calling convention _cdecl (stack cleanup by caller) you should import those functions in Delphi specifing that calling convention. For the Delphi functions, you should specify (in C++) the WINAPI calling convention (since the PASCAL calling convention is no longer supported in windows.h) when importing those functions. From here you should know how to interface the 2 languages... Hope this is of any help. Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.

      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