Internal and External Linkage
Global inline functions, consts and typedefs have internal linkage.That means that the declarations in these two files do not interfere with each other: //File1.c typedef int T; const int a
Global inline functions, consts and typedefs have internal linkage.That means that the declarations in these two files do not interfere with each other: //File1.c typedef int T; const int a
This tips explains how to list members in an initialization list in the order in which they are declared. Take a class Array: class Array {private: int *m_piData; // ptr
Enum mbOfficeAppConstants mbWord = 0 mbAccess = 1 mbExcel = 2 mbPowerpoint = 3 mbOutlook = 4End Enum’ Check whether the specified Office application is present’ Note: require GetRegistryValue” Example:’
Private Declare Function GetFileSecurity Lib “advapi32.dll” Alias _ “GetFileSecurityA” (ByVal lpFileName As String, ByVal RequestedInformation _ As Long, pSecurityDescriptor As Byte, ByVal nLength As Long, _ lpnLengthNeeded As Long) As
‘ Synchronize two directories” This routine compares source and dest directories and copies files’ from source that are newer than (or are missing in) the destination directory’ if TWOWAYSYNC is
‘ Synchronize two directory subtrees” This routine compares source and dest directory trees and copies files’ from source that are newer than (or are missing in) the destination directory’ if
Enum CompareDirectoryEnum cdeSourceDirOnly = -2 ‘ file is present only in the source directory cdeDestDirOnly = -1 ‘ file is present only in the dest directory cdeEqual = 0 ‘
Private Type MP3TagInfo tag As String * 3 title As String * 30 artist As String * 30 album As String * 30 year As String * 4 comment As
Private Const MAX_PATH = 260Private Type SHFILEINFO hIcon As Long iIcon As Long dwAttributes As Long szDisplayName As String * MAX_PATH szTypeName As String * 80End TypePrivate Declare Function SHGetFileInfo