Subj : Re: Using a VC6.0 lib with Borland C 3.0 for dos To : borland.public.cpp.borlandcpp,borland.public.cpp.language From : Gerhard Wolfstieg Date : Sun Dec 14 2003 07:57 pm Laery wrote: > Hi, > > Thanks for the respone. > > I've downloaded the free commandline 5.5 from borland but it gives me > the 0x21 error, COFF2OMF didn't help. I can't help with "5.5" and don't know about error 0x21. But today -- dealing with compiler flags -- I remembered something that could help you. You have to set the right calling conventions for the VC6 functions to import. For this you can search for the compiler flag to set the convention globally (to _stdcall probably (_cdecl, _fastcall, _pascal are others)) or (which is better) you have to modify the function prototypes to e.g.: double _stdcall FunctionName( int arg1, char ****argN ); gw > > Regards > Géry > Gerhard Wolfstieg wrote in message > news:... >> Laery wrote: >> >> > Hi, >> > >> > Is there away to convert a lib file generated with MS VC (probably >> > 6.0) to a file that can be used by borland C(++) 3.0 for dos. >> > I found this: >> > http://groups.google.be/groups?hl=nl&lr=&ie=UTF-8&oe=UTF-8&threadm= >> 23esVu5TCAHA.253%40cppssbbsa05&rnum=40&prev=/groups%3Fq%3Duse%2Bmicrosoft >> 2Blib%2Bwith%2Bborland%2B3%26hl%3Dnl%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8 >> 26start%3D30%26sa%3DN >> >> I could not see in Firebird wuthout cookies. >> >> > >> > But it didn't work: "no exports" is the message the borland functions >> > return. >> > >> > The application needs to run on devices running dos on a 80386 CPU >> > with 640KB of ram and 2MB of storage card. >> > >> > If realy necessary I could compile my application using Borland C++ >> > 5.01 but only as a last resort if it can not be done with 3.0. >> >> Before the last resort you can try to use the functions not from *.lib >> but from *.dll. It definitely does not work with 3.0 or 5.0x and *.lib; >> You can bind [VC].lib with BC 5.5 or from BCB 4.0 on. >> >> gw >> >> > >> > >> > Regards >> > Laery .