[comp.windows.ms.programmer] How to export data from DLL's with Borland C

joergp@gmdzi.gmd.de (Joerg Prust) (06/04/91)

Does anybody know how to export data (not functions) of a dll?
I tried to export a whole class in C++, but only the functions
appear in the .def file generated by impdef.exe.
According to the Borland manual it should be possible to export
"static data of a dll" but HOW?

Thanks in advance

J"org

Joerg Prust
F3 - XPS
German National Research Center for Computer Science (GMD)
Schloss Birlinghoven
D-5205 St. Augustin
email: joergp@gmdzi.gmd.de

dsampson@x102a.harris-atd.com (sampson david 58163) (06/05/91)

Your best bet on transferring data from a DLL to an application is the
recommended approach to get data from the app to the DLL -- as a
paramater in a function call (in this instance  a callback function).
--

                                          A new world record
                                          in the javalin throw
                                                
    /                                          /
   /                                          I
-------------------------------------------------


David Sampson                                         Harris Corporation
dsampson@x102a.ess.harris.com                   Gov't Aerospace Systems Divison
uunet!x102a!dsampson                                  Melbourne, Florida

-------------------------------------------------------------------------------