c++visual-studio-2012tdatetime

TDateTime data type


I have been using C++ Builder to develop some classes. I have been using the TDateTime data type by including the 'vcl.h'. Is this only unique to C++ Builder?

I ask this because I am now using Microsoft Visual Studio C++ and am getting a 'TDateTime is undefined error'.

How can I use this type in Visual Studio?

Thanks


Solution

  • Most of Borland's Visual Component Library is built around it's own compiler-specific extensions and delphi code. I very much doubt you will have an easy time getting it to work under any other compiler.

    LUckily there are plenty of alternatives. If you're using Visual C++, then you can use Microsoft's Date/Time libraries: http://msdn.microsoft.com/en-us/library/6ahxxcsz%28v=vs.100%29.aspx

    There are also portable libraries from Boost and QT which should run under any modern C++ compiler