home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.os2.programmer:4462 comp.os.os2.apps:5560
- Path: 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
-
-
- 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.
-