-
Hi, my problem is simple.
I have created an ActiveX DLL with one class in it called clsRefDataBC. The DLL references nothing and I want it to stay that way. I have created another ActiveX DLL that references the first one and I want the class in it to inherit the properties and methods of clsRefDataBC. How is this done?
Thanks in advance.
Steve
-
unfortunatly you have to do it manually, ie for each property and method of your base class you should define the same property/method in your inheriting class and use it to implement the method or get/set the property in the base class.
-
OK Sam, thanks for that. However, if I have an application that references the 2nd DLL, how do I create an instance of clsRefDataBC?
Any Ideas.
-
I'm not entirely sure what you mean but I think I get the gist
If you compile 1 dll and reference it from another dll then compile the 2nd dll then any program referencing the 2nd dll will not be able to get at the classes in the 1st dll.
If you add the source code of the first dll to your project
and compile to make a 2nd dll then any program referencing the 2nd dll will beable to get at the classes in the first dll
hope this helps.
-
you can try "Implements clsRefDataBC" in the class mod of your 2nd .dll.