# Sharing Code and Objects Between Delphi and C++

Conrad Herrmann, Borland International

- Introduction
- Sharing Functions
- Packaging Issues - 10 min
  - Libraries in a DLL
  - Linking OBJs into an EXE or DLL
  - When to use DLLs/when to use OBJs
- Sharing Objects Between Borland C++ and Delphi - 20 min
  - Accessing and Manipulating a Pascal Object from C++
  - Creating the Object: Factory Functions
  - Freeing the Delphi Object from C++
  - Using a C++ Object From Delphi
- Using Delphi Forms in a C++ Program - 25 min
  - Using a Modal Form as a Dialog
  - Using a Delphi Form as a Modeless Window in a C++ MFC or OWL program
    - Making an Embeddable Delphi Form
    - Writing OWL C++ Source
      New OWL 5.01 Headers for Embedding Delphi Forms in OWL Apps
    - Writing MFC C++ Source
- Conclusion
- Additional References

© 1996 by Borland International, Inc. All rights reserved.