Due to the wild success of my last post here is another question:
I have a com class for which I only want to expose a single function to return a bitmap from a dwg file. (same one)
I can manipulate the background color to either white or black in the process.
In your opinion, which is the best practice:
1. Use a background color property with a default setting.
2. add the background color argument to the function and force the client app to pass it with each calling.
Here is the function as it currently exists:
' The primary function of this class
' Accepts drawing file with path or http address of a drawing
' and returns the pointer to the bitmap if successful
Public Function GetDwgPreview(ByVal sFile As String, _
ByRef hBitmap As Long) As Boolean
Once I compile and distribute, I can't change the function ars without breaking compatibility.