Re: Export C++ class from a Borland DLL and use it in Microsoft VC



"Markus Donath" <news1589@xxxxxxxxxxxxx> wrote in message
news:OjKWiG94GHA.5080@xxxxxxxxxxxxxxxxxxxxxxx
Using Borland C++ dlls in msvc is not possible.

I think, that's not true. For example, I use a DLL written in Intel
Fortran with Borland C++. IMHO DLL-usage is compiler - and even though -
language independant. If it really doesn't work with the MS compiler (I
did not do this), it is in fact a Microsoft problem.

If one is careful, functions that one exports from DLLs may be called by
client applications in just about any language. If that were not so, Visual
Basic and PowerBuilder applications, for example, could not make use of the
Win32 API. QED.

But, as Bruno points out there is in general no sharing of classes because
there exists no standard name mangling / decorating convention across
compilers (as if the ISO standard were in danger of becoming bloated <g>)

FWIW: If you should again find a need to use a Fortran DLL with an MS
application, this article

http://support.microsoft.com/?id=131313

explains how you should be able to do it.

Regards,
Will


.



Relevant Pages

  • Re: Exposing bool to non-MS, non-C++ callers
    ... the functions in this DLL accept a structure as an argument. ... The compiler doesn't help catch places where I neglect ... the C++ bool type is defined as one byte. ... depends on whether the Exe caller will push a value larger than 1 byte. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Memory allocation methods
    ... all modules are compiled against the same CRT' DLL with the same compiler. ... that case you restrict yourself to a simple C-based API for the DLL. ... I prefer to use either exceptions (but writing exception-safe code is quite ...
    (microsoft.public.win32.programmer.kernel)
  • COBOL Compiler options
    ... calls to CICS. ... we do not document this DLL problem nor have compiler options ... use of DLL's with the integrated translator (for cases where it is valid ...
    (bit.listserv.ibm-main)
  • Re: Export class from dll
    ... Remember that C++ classes describe not only the general characteristics of ... Only when the DLL ... about the compiler not knowing the details of a CBox, ... How does the compiler know what CBox is? ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: ASP.NET application load time after some change
    ... This utility combines multiple .NET dll's into one dll file. ... The speed can also be affected by how much stuff is in viewstate. ... controls such as Labels or Controls who have their value set in the Load ... because the compiler only needs to compile it once. ...
    (microsoft.public.dotnet.framework.aspnet)