Re: Using Borland C++ object files in VC++



On 2 Mart, 12:26, Bruno van Dooren [MVP VC++]
<bruno_nos_pam_van_doo...@xxxxxxxxxxx> wrote:
I have an obj file, that is compiled with Borland C++ in MS-DOS, and i
don't have source codes. There are some c-style mathematical functions
in obj file. Now, i need to use this file in a program written in VC++
6 in XP.

I know Borland uses OMF and VC++ uses COFF, and this is not the
problem since visual studio can convert OMF to COFF. I guess real
problem is about different linker name conventions. How can i solve
this? Are there any tools about this conversion?

Hi,

I don't have C++ experience with DOS, but:

If linker and naming conventions were the only problem you'd be lucky.

Even if this is / were not the case, object files are never portable between
compiler versions, and definitely not between compiler vendors, and even if
they were, your object file was not compiled for a win32 subsystem.

Object files does not contain any dos-specific functions, only some
mathematical algorithms are implemented there. I know VC++ dlls can be
imported by Borland using implib, impdef etc, and this proof of the
conversion is why i am hopeful.


Maybe someone with DOS experience will chime in to say that I am wrong, but
I think it is impossible to use that object file with VC6.

--
Kind regards,
Bruno.
bruno_nos_pam_van_doo...@xxxxxxxxxxx
Remove only "_nos_pam"

Thanks, Gokcen.


.



Relevant Pages

  • Re: C++ Project Files?????
    ... by the compiler. ... executables, because the code of the function is duplicated instead of ... object files are not really standardized. ... > unsigned long int square; ...
    (comp.lang.cpp)
  • Re: Compiling Problem with LibCurl
    ... containing object files and hence shouldn't be included on the CC line. ... The LINK command is then used to link the object files and libraries. ... The C compiler has a process for finding include files. ... it finds those which ship with the compiler, curl isn't one of those. ...
    (comp.os.vms)
  • Re: ld(1) cannot find entry symbol _start;
    ... compile - assemble - link process on FreeBSD. ... That is adds several other object files to your own in order to get ... at which execution begins is in ... If you use 'the compiler' to manage the linking process -- e.g. ...
    (freebsd-questions)
  • Re: Object files
    ... Put floppy disk in computer. ... > brand of compiler, linker or another version of the same compiler. ... of software in object or library (collection of object files) form, ... dozens of libraries supplied in object form, ...
    (comp.lang.c)
  • Re: C++ Project Files?????
    ... The C preprocessor *merges* the header files with the source files ... > What the is a library file? ... > files have been turned into object files, ... that came with your compiler. ...
    (comp.lang.cpp)