devxlogo

Tip Bank

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

Listing Members in an Initialization List

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

GetFileOwner – Get the owner of an NTFS file

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