Last update October 8, 2007

Doc Comments /
Interface



Difference (previous author) (Change, Edit, normal page display)

Changed: 1c1
= Interfacing To C =
= Interfaces =

Deleted: 3d2
== More Information =

Changed: 7,10c6,10
== Message =
Put your comments about the official/non-official page here.

There is a short section in Interfacing to C on calling D functions from C, but as it has no subheading it is not obvious that the subject has changed from D calling to C.
These files that come with the DMD compiler demonstrate a COM server/client application:
* dmd\samples\d\dserver.d: COM server
* dmd\samples\d\chello.d: required to compile the COM server
* dmd\samples\d\dclient.d: COM client
* dmd\samples\d\all.sh: gives help hints as how to compile the examples (such as which .lib files are needed).

Added: 11a12
(See also: ExamplesRoadmap)

Deleted: 13,14d13
extern (C) int foo; creates a new foo variable in D,
but is just a definition of an external variable in C.

Changed: 16,18c15
the usual workaround is to put all data definitions in a
separate module, that is import from the function defs
(but the resulting data object code is never linked in)
== Message =

Added: 19a17
Add your comments here...

Deleted: 21,22d18
== Amendments =
You may add a link to this page on the DocumentationAmendments page to draw extra attention to your suggestion.

Changed: 25c21,25
See the corresponding page in the D Specification: DigitalMars:d/interface.html

* Corresponding page in the D Specification:
** D 1.x
** D 2.x
* Interface Posts

Interfaces

Examples

These files that come with the DMD compiler demonstrate a COM server/client application:

  • dmd\samples\d\dserver.d: COM server
  • dmd\samples\d\chello.d: required to compile the COM server
  • dmd\samples\d\dclient.d: COM client
  • dmd\samples\d\all.sh: gives help hints as how to compile the examples (such as which .lib files are needed).
(See also: ExamplesRoadmap)

Message

Add your comments here...

Links


FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: October 8, 2007 16:13 (diff))