Thursday, September 23, 2010

File Management

http://msdn.microsoft.com/en-us/library/aa364232(v=VS.85).aspx

FindNextFile()


PathFindExtension()

C++ Macros

http://www.ebyte.it/library/codesnippets/WritingCppMacros.html

Nice description and examples.

Wednesday, September 15, 2010

MSBuild Command Line Reference

http://msdn.microsoft.com/en-us/library/ms164311.aspx

SYSTEMTIME Structure

 http://msdn.microsoft.com/en-us/library/ms724950(VS.85).aspx
 typedef struct _SYSTEMTIME {   WORD wYear;   WORD wMonth;   WORD wDayOfWeek;   WORD wDay;   WORD wHour;   WORD wMinute;   WORD wSecond;   WORD wMilliseconds; } SYSTEMTIME, *PSYSTEMTIME;
 

fmod

http://www.cplusplus.com/reference/clibrary/cmath/fmod/

     double fmod (      double numerator,      double denominator );       float fmod (       float numerator,       float denominator ); long double fmod ( long double numerator, long double denominator );
 

COleDatTime::COleDateTime

For older unmanaged code this handles the DATE type.



 COleDateTime( ) throw( );  COleDateTime(    const VARIANT& varSrc  ) throw( ); COleDateTime(    DATE dtSrc  ) throw( ); COleDateTime(    time_t timeSrc  ) throw( ); COleDateTime(    __time64_t timeSrc  ) throw( ); COleDateTime(    const SYSTEMTIME& systimeSrc  ) throw( ); COleDateTime(    const FILETIME& filetimeSrc  ) throw( ); COleDateTime(    int nYear,    int nMonth,    int nDay,    int nHour,    int nMin,    int nSec  ) throw( ); COleDateTime(    WORD wDosDate,    WORD wDosTime  ) throw( ); COleDateTime(       const DBTIMESTAMP& dbts ) throw();
 

Re: Time DBTIMESTAMP

 http://msdn.microsoft.com/en-us/library/c3zzz087(v=VS.80).aspx
 Function for getting the DBTIMESTAMP.
 bool GetAsDBTIMESTAMP(       DBTIMESTAMP& dbts ) const throw();

On Wed, Sep 15, 2010 at 9:41 AM, Stan Hughes <hughes.stan@gmail.com> wrote:

The fraction time is from 0 to 999,999,999.

Not really sure what good this does since you can only get it for the current time and any translation of time rounds to the nearest second.

DBTIMESTAMP

The DBTIMESTAMP structure typedef is defined as follows:

 typedef struct tagDBTIMESTAMP {     SHORT  year;     USHORT month;     USHORT day;     USHORT hour;     USHORT minute;     USHORT second;     ULONG  fraction } DBTIMESTAMP; 

Members

year
The year (0 to 9999) is measured from 0 A.D.
month
The month ranges from 1 to 12 representing January through December.
day
The day ranges from 1 to a maximum of 31, depending on the number of days in the month.
hour
The hour ranges from 0 to 23.
minute
The minute ranges from 0 to 59.
second
The second ranges from 0 to 59.
fraction
The fraction represents billionths of a second ranging from 0 to 999,999,999.