DateTime Library
원문 : http://www.codeproject.com/KB/cs/csdatetimelibrary.aspx using System; namespace Concepts2Code.Utilities { /// /// Common DateTime Methods. /// /// public enum Quarter { First = 1, Second = 2, Third = 3, Fourth = 4 } public enum Month { January = 1, February = 2, March = 3, April = 4, May = 5, June = 6, July = 7, August = 8, September = 9, October = 10, November = 11, December = 12 } public ..
2009. 3. 16.
파일 버젼 구하기
function GetFileVersion(ExePath: String): String; var trans : Pointer; transtring : String; n, aLen, bLen : DWORD; Buf : PChar; Version : PChar; begin n := GetFileVersionInfoSize(PChar(ExePath), n); Buf := AllocMem(n); try GetFileVersionInfo(PChar(ExePath), 0, n, Buf); VerQueryValue(Buf, 'VarFileInfo\Translation', trans, aLen); transtring := IntToHex(MakeLong(HiWord(Longint(trans^)), LoWord(Long..
2008. 12. 16.