Article View: comp.os.os2.programmer
Article #988Exporting variables from DLL's
From: Malathi Ramdas
Date: Wed, 26 Aug 1992 21:35
Date: Wed, 26 Aug 1992 21:35
9 lines
1031 bytes
1031 bytes
Is it possible to export global variables from a DLL? I have written a
DLL that exports 3 variables. I have created an import library for an appl
ication that wishes to use this DLL. As soon as I try to run this application
it complains about not being able to find these variables in the DLL module.
It seems like from the export declararions in the .def file it is assuming
that these are functions and not variables. Should I be doing anything differe
nt or is it simply impossible to export global variables? By the way, I am compi
ling and linking the DLL application using CSET/2 and LINK386.
Technical Details
Message-ID:
<1992Aug26.213514.14162@natinst.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!gatech!swrinde!news.dell.com!natinst.com!ramdasShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!gatech!swrinde!news.dell.com!natinst.com!ramdas From: ramdas@natinst.com (Malathi Ramdas) Newsgroups: comp.os.os2.programmer,comp.os.os2.apps Subject: Exporting variables from DLL's Message-ID: <1992Aug26.213514.14162@natinst.com> Date: 26 Aug 92 21:35:14 GMT Sender: news@natinst.com Organization: National Instruments, Austin, TX Lines: 9 Nntp-Posting-Host: eagle.natinst.com