
Allocating Memory Before Calling a Function
Suppose you want to pass an object to a method and also want to allocate the object into that method. If you pass the object as it is, it will

Suppose you want to pass an object to a method and also want to allocate the object into that method. If you pass the object as it is, it will

Using the DTPicker control is good except if you

Fields defined in interfaces are automatically public, static, and final. Being final, they cannot be

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

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

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,

It’s important to remember that you may want to use your classes in future projects. Overtime class files may change directories, or your next program could be for use on

If there are no calls to constructors in the initialization list, an implicit copy constructor of a derived class always calls the copy constructors of the base classes. On the

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