Solved

CTime to Long

Posted on 2000-03-09
1
1,518 Views
Last Modified: 2013-11-20
How can I convert a CTime variable to a long?
0
Comment
Question by:Rxd
1 Comment
 
LVL 5

Accepted Solution

by:
vachooho earned 25 total points
ID: 2601665
CTime time = CTime::GetCurrentTime();
long lTime = (long)(time.GetTime());

GEtTime() will return time_t which is long integer by itself
YOu can safely cast it to long!

Hope this helps
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Creating Labels and Frequency list style reports in SAS code 9 92
iSeries DB2 Query 2 89
notReplace  challenge 53 115
FizzBuzz challenge 9 76
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
A short film showing how OnPage and Connectwise integration works.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now