Extracting the Extension of a Filename
The following function returns the extension of the filename that is being passed to it. It also takes into account the facts that a filename can include multiple
The following function returns the extension of the filename that is being passed to it. It also takes into account the facts that a filename can include multiple
It’s faster to retrieve the length of a string and compare the value to zero than it is to compare it to an empty string. This is especially useful in
There are various problems regarding pointers that can be handled with the help of macros. Some of these problems are: deleting dangling pointers, deleting pointers other than NULL, and checking
Sometimes, you may need to make a Frame or JFrame non resizable. This happens especially when you are using the setBounds method or if you have less components in your
Most web sites heavily rely on client-side cookies. For example, ASP Sessions can work correctly only if the browser allows temporary cookies (that are not stored on disk). ASP doesn’t
‘ Add or remove a program to the list of applications that will’ be automatically launched when Windows boots.” Action can be:’ 0 = delete from list’ 1 = execute
Const HKEY_LOCAL_MACHINE = &H80000002′ modify the value of a setting for the VBA editor from the Registry” Possible values for SettingName are:’ AutoQuickTips2 (0/1)’ AutoStatement2 (0/1)’ AutoValueTips2 (0/1)’ BackGroundCompile (0/1)’
Private Declare Sub SHChangeNotify Lib “shell32.dll” (ByVal wEventId As Long, _ ByVal uFlags As Long, ByVal dwItem1 As Long, ByVal dwItem2 As Long)Const SHCNE_ASSOCCHANGED = &H8000000Const SHCNF_IDLIST = 0′ Destroy