View Single Post
Old August 26th, 2006, 05:01 PM
marcostraf marcostraf is offline
Friend of Wrox
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts

are you talking about an ActiveX library right?

in the public class that is used by the exe declare your variables at module level, i.e. outside any methods like

private m_myVar as Double

then in your exe keep a copy of that class, and do not create and destroy it any time you use it (same trick, declare it at module level

private m_myClass as MyDLL.MyClass

In this way the class will be destroyed only when the app terminates (unless you set it to nothing) and thus it will keep its data