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

  1. Path: sparky!uunet!paladin.american.edu!europa.asd.contel.com!emory!ogicse!uwm.edu!rpi!asylum!romkey
  2. From: romkey@asylum.UUCP (John Romkey)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: DLL's written in C++ to ObjectVision
  5. Message-ID: <343@asylum.UUCP>
  6. Date: 22 Jul 92 16:04:29 GMT
  7. References: <ANDERS.92Jul22155636@ipcsun2.his.se>
  8. Distribution: comp.os.ms-windows.programmer.misc
  9. Lines: 16
  10.  
  11. anders@ipcsun2.his.se (Anders Eklund) writes that he can't call C++ functions
  12. in a DLL from ObjectVision.
  13.  
  14. Here's a *guess*: the names aren't what you expect. Borland's C++ compiler
  15. (and many others as well) encode a functions return type and argument types
  16. in the function name. This is a simple mechanism to allow functions (and
  17. object methods) to be overloaded (the same name with different return values
  18. and types, selected automatically by the compiler depending on what you
  19. call it with). The reason ObjectVision probably can't call a function in your
  20. DLL is probably because the function name in the binary is much different from
  21. what you expect it to be. I don't know if BCC has an option to turn off
  22. name mangling; I don't imagine it does, but it's got more options than
  23. I want to scan just this minute. One workaround would be for you to 
  24. figure out the mangled form of the name and use that in ObjectVision.
  25. -- 
  26.     - john romkey      ELF Communications     romkey@ELF.com
  27.