LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Exchanging time values between LW/CVI and MSVC++

time() funtions returns time elapsed from:
1 january 1970 in MSVC
1 january 1900 in LW/CVI

If I want to send time_t value from CVI to MSVC software I'm using macro:
#define timeOut(x) ((x)-0x83AA7E80)

and to convert time_t value from MSVC to CVI format:
#define timeIn(x) ((x)+0x83AA7E80)

Are there any functions to make such conversions?

Regards
Jaroslaw Przywieczerski
0 Kudos
Message 1 of 2
(2,977 Views)
There aren't conversions for the different ANSI C time structures. This method really isn't used in Windows much anymore for getting date and time. The functions GetSystemTime and GetSystemDate are the commonly used way, and these functions are the same in VC++ and CVI.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 2
(2,977 Views)