Click to See Complete Forum and Search --> : VB


Lorna
May 24th, 2001, 05:05 AM
Hi there. I'm busy learning about Dll, exe and OO in general. Two questions:

1) what does the "Implements" Keyword mean?
2) How do I test a DLL/EXE - do I start another session of VB, run the DLL/EXE in the second session

Thanks

Clearcode
May 24th, 2001, 06:11 AM
Implements means that the class is an implementation of an interface class. An interface class is one which is basically a template with no code of its own but which can be used to build common functionality into other classes.

For example, we have an ISerialise class which defines methods such as SerialiseToXML and SerialiseToDatabase. Then each "real" class, such as CCustomer implements this class to provide its own mechanism to serialise the object.

To test an activeX object you can add its project to your test project in one session of VB and in the references section make sure the mydll.vbp is checked.

HTH,
Duncan

-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com