Results 1 to 2 of 2

Thread: TDateTime data type

  1. #1
    Frenzied Member
    Join Date
    Sep 08
    Posts
    1,028

    TDateTime data type

    I have written hundreds of lines of code in C++ Builder, mainly using the data type TDateTime. My evaluation version of C++ Builder runs out in 1 day. Because of this, I am wanting to use VS2012 C++.

    My problem is this: The TDateTime variable does not seem to be easily used in VS2012. In C++ Builder, I have included the #include <vcl.h> statement.

    How can I use this data type in VS2012 C++? Is it possible? If so, how?

    Thanks

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 05
    Location
    Sweden
    Posts
    8,013

    Re: TDateTime data type

    Open up your Project menu and click Properties. In the list on the left hand side of the window, expand Configuration Properties and select VC++ Directories. Select Include Directories, click the little arrow that appears and choose Edit. Now add the directory in which vcl.h resides. This will allow you to use #include <vcl.h> just like you did in C++ Builder.

    You may need to link to the appropriate library as well. A quick google tells me that the library in question is vcle.lib.
    ---My Flickr photo (mostly screenshots these days!) stream. Have a look!

    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    TCP client/server connection | Retrieving the EventHandler for any Event by code.
    Check out the work in progress: Vortex - C++ 3D Game engine for windows and linux - (Development blog - Leave a comment!)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •