I am migrating from an old version of Borland C++ to the newest. In my code I had used String (AnsiString). In the new compiler it does not recognize String or AnsiString as a valid type, so I put in vcl.h in the file where I use String. Now I get 103 errors, all saying "reference to byte is ambiguous" (various system .h files). Is vcl.h not the header for AnsiString?
thanks
The actual header file that defines
AnsiString
isdstring.h
, and always has been (the header file that definesUnicodeString
isustring.h
). TheSystem::String
alias is defined insysmac.h
.vcl.h
includes these headers for you. If you are getting errors, either you did not create a VCL project properly to begin with, or your project is misconfigured.