Don’t store object variables in the SPM
Some MTS/COM+ newbies wonder whether it is legal to store object variables in the SPM. No, you can’t!! the SPM is unaware of Apartment marshaling issues. If you ask the
Some MTS/COM+ newbies wonder whether it is legal to store object variables in the SPM. No, you can’t!! the SPM is unaware of Apartment marshaling issues. If you ask the
When you decide to release a new version of an MTS/COM+ component you should take care of its compatibility with the previous version. There are three types of changes you
Public variables at module level are thread specific. Each new thread starts get a new fresh & uninitialized copy of such variables. All the activities that are born from the
A common question among VB developers is: Why is it dangerous the use of the New keyword in VB to create COM objects registered under MTS/COM+? The New keyword is
Use this function to read a number decimal symbol from regional settings: Sub Form_Load()Dim DecS As StringDecS = ReadDecimalSymbol()End SubFunction ReadDecimalSymbol() As StringReadDecimalSymbol = Mid$(CStr(1.1), 2, 1)End Function
Bundling functionality and program logic into an ActiveX DLL is an excellent form of encapsulation. But even when you expose functionality to your client application, you don
Private Declare Function LoadLibrary Lib “kernel32.dll” Alias “LoadLibraryA” _ (ByVal Path As String) As LongPrivate Declare Function GetProcAddress Lib “kernel32.dll” (ByVal hModule As _ Long, ByVal ProcName As String) As
The Clip property of the System.Windows.Forms.Cursor class represents the rectangle within which the mouse cursor is confined, or Nothing if the mouse can move over the entire screen. This rectangle
If a form owns another form, the owned form will be always displayed in front of its owner form, no matter which is the active form. This makes owned forms