covert time_t ot LONG
-
hi !! I am newbie in VC++. I am having problem coverting a time_t varible into LONG data type. as far as I know time_t is 64 bit int but I have no idea about LONG.. what is the safe way to do that??
what about type casting?
Regards Programm3r
-
what about type casting?
Regards Programm3r
-
thx for the quick rpl! I did type casting!! The compiler agrees on that! But is it really safe!!! It should not break at run-time. Also how much byte does LONG takeS?? thx!!
-
LONG is 4 bytes. time_t is now a 64-bit value (unless _USE_32BIT_TIME_T is defined).
"A winner is not one who never fails...but the one who never quits"
-
thx for the quick rpl! I did type casting!! The compiler agrees on that! But is it really safe!!! It should not break at run-time. Also how much byte does LONG takeS?? thx!!
sach!! wrote:
Also how much byte does LONG takeS??
write this to know : std::cout << "sizeof(LONG) = " << sizeof(LONG) << endl;
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
sach!! wrote:
Also how much byte does LONG takeS??
write this to know : std::cout << "sizeof(LONG) = " << sizeof(LONG) << endl;
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
hi !! I am newbie in VC++. I am having problem coverting a time_t varible into LONG data type. as far as I know time_t is 64 bit int but I have no idea about LONG.. what is the safe way to do that??
sach!! wrote:
am having problem coverting a time_t varible into LONG data type.
my Question is WHY?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
sach!! wrote:
am having problem coverting a time_t varible into LONG data type.
my Question is WHY?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
hi !! I am newbie in VC++. I am having problem coverting a time_t varible into LONG data type. as far as I know time_t is 64 bit int but I have no idea about LONG.. what is the safe way to do that??
-
Thx That is what i am doing to get the size!! I need to use 32bit time_t so i declered #define _USE_32BIT_TIME_T But its not making any diffence!! I am still getting 8 bytes as a size of time_t var.
sach!! wrote:
But its not making any diffence!! I am still getting 8 bytes as a size of time_t var.
typecast it to FILETIME ! it length is 64 bit!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You