NewBorlandUser
Programmer
I'm a new user of Borland's C++ Builder 6 and have inherited some legacy code that includes a call to the function AnsiToNative(). I located this function in CBuilder/Source/vcl/dbtables.pas. So, I added that file to my project and when I built the project, Builder did create the file dbtables.hpp (although it already seemed to exist anyway) along with an object file for dbtables. The header file that was created gave the exact function prototype which I declared as extern in my own files that make the call to AnsiToNative(). Also, I included the dbtables.hpp file in my files so they could find the AnsiToNative() definition.
Well, the result was that my build had a couple different errors. One was an E2040 error in DB.hpp - a file that is used by Borland's dbtables.hpp - the error says "Declaration terminated incorrectly" and the line it flagged with the error didn't seem to be incorrect in any way - it looked just like other lines that had no problem.
The second error was that any of the actual calls to AnsiToNative() resulted in an error which stated there was an ambiguity between the extern declaration at the head of my file and the places where the calls to AnsiToNative() were made.
So, does anyone have any idea as to the procedure of how to correctly use such a function that comes from Borland's object Pascal files?
Thanks in advance for any help anyone can provide on this issue.
Well, the result was that my build had a couple different errors. One was an E2040 error in DB.hpp - a file that is used by Borland's dbtables.hpp - the error says "Declaration terminated incorrectly" and the line it flagged with the error didn't seem to be incorrect in any way - it looked just like other lines that had no problem.
The second error was that any of the actual calls to AnsiToNative() resulted in an error which stated there was an ambiguity between the extern declaration at the head of my file and the places where the calls to AnsiToNative() were made.
So, does anyone have any idea as to the procedure of how to correctly use such a function that comes from Borland's object Pascal files?
Thanks in advance for any help anyone can provide on this issue.