license checking inside Class_Initialize()
Posted on 2005-05-17
I have a VB6 dll that contains a lot of the functions for my asp application. I need to put a license key check inside the dll in order to prevent the app from running if a valid key is not found, or if it's expired.
I would like to put this check inside Class_Initialize() so that it is only executed once -- when the object is created. Is there any danger in this, or pitfalls I should be aware of? Would this create instability in the component or webapp? Is there a better solution? Are there certain types of code that should not be executed inside Class_Initialize()?
Can Class_Initialize() return a value to signify expired or invalid key? Or can it call a function to do so? If not, how can I alert the calling asp page that this is the case?
I will split points for any useful responses.