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