I need to create a dll that will handle several different cases. I want to create several classes in the dll that each will handle individual case, and all these cases have data and functions in common.
So I want to create a main class that contains all the data and functions in common.
For example I have the followings:
1: Main class named MyMainClass.cls with function GeneratePaper()
2:MyCaseAClass.cls with function insertCaseAContents();
3:MyCaseBClass.cls with function insertCaseBContents().
My question are :
1: If I want to call insertCaseAContents() in GeneratePaper in main class, I should do like:
Dim caseAObj as MyCaseAClass
set caseAObj = new MyCaseAClass
is it right?
2: If I create a DLL file, then create a package, then use it in ASP application like the following:
<object ID="DLLObj" viewastext style="display:none" CLASSID="CLSID:**** codebase="MyPackage.CAB#version=2,0,0,0"></object>
Does all these functions (suppose they are all public) are visible to DLLObj, do not matter which classes they are in? so I can call like:
Can these classes have the same name functions? if yes, how the DLLObj can tell the difference?