troubleshooting Question

Multiple classes in ActiveX DLL

Avatar of atkinsHOU
atkinsHOU asked on
Web ComponentsWeb Applications
6 Comments1 Solution276 ViewsLast Modified:
Hi, all,

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:
DLLObj.insertCaseBContents ??

Can these classes have the same name functions? if yes, how the DLLObj can tell the difference?




Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros