home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 1095 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.7 KB

  1. Xref: sparky comp.os.ms-windows.programmer.misc:1095 comp.windows.ms.programmer:7427
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!samsung!balrog!frankp
  3. From: frankp@ctron.com (Frank Perreault)
  4. Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
  5. Subject: Re: Known Compiler Bug In BC++ v3.1....
  6. Message-ID: <4625@balrog.ctron.com>
  7. Date: 30 Jul 92 13:34:43 GMT
  8. References: <1992Jul22.130358.9250@cs.odu.edu>
  9. Sender: usenet@balrog.ctron.com
  10. Reply-To: frankp@olympus.ctron.com (Frank Perreault)
  11. Followup-To: comp.os.ms-windows.programmer.misc
  12. Organization: Cabletron Systems INc.
  13. Lines: 26
  14. Nntp-Posting-Host: olympus
  15.  
  16. In article <1992Jul22.130358.9250@cs.odu.edu> popkin@viatka.cs.odu.edu (Brian N. Popkin) writes:
  17. >Dear Netters:
  18. >
  19. >I am having alot of problems with bc++v3.1 and have heard that
  20. >it is a compiler bug.. I cannot get any of my functions to 
  21. >export.. I have used the smartcallbacks too and cannot get them
  22. >to export.  I am also used the -We option and _export option..
  23. >
  24. >Does anybody have any suggestions??  My windows program has
  25. >only a dialog procedure and WndProc..
  26. >
  27.  
  28. Brian,
  29.  
  30. I have found that with the Borland Compiler their are only two ways to insure
  31. that your functions are getting exported. One, set up things so that all
  32. functions are exportable (a big memory pig for large apps) or two, put the 
  33. keyword _export in the functions/function declarations for the ones that you
  34. want to export.
  35.  
  36. It seems that you can have a .DEF file with a list of functions to export and
  37. without the _export keyword they still will not get exported, so you may want
  38. to give this a try. You can run a TDUMP of the DLL after you link to check to
  39. see if the function was in fact exported.
  40.  
  41. --- Frank ---
  42.