Tip Bank

DevX - Software Development Resource

Reduce the Size of an ATL DLL

When writing an ATL DLL or an ActiveX Control DLL, developers used to take off the ATL_MIN_CRT. However, this action will increase the size of the DLL up to almost

DevX - Software Development Resource

Make Collections Work Like Standard VB Collections

Add the following procedure to your collection object: Public Function Item(ByVal Value as Variant) _as SomeObject Set Item = mCollection.Item(Value) ‘mCollection is your private module level ‘collection object.End Function Now,

DevX - Software Development Resource

An Essential Use For Explicit Typecasting

If one is not careful with implicit typecasting, one can get very weird results that are not easy to detect.Look at the code below: int number;.. //some computation and codeint

DevX - Software Development Resource

Return Any Name String in Proper Capitalization

Function FormatProper(ByVal strName As String) As String’**********************************************************************’* Take any name string and return it in proper capitalization’********************************************************************** Dim strProperName As String Dim varProperName As Variant Dim intCount As Integer Dim