Inheritance in COM
-
Hi all, I got into the problem where I have to inherit a COM class/object with another COM class/object. Actually I am creating a component for for reading/writting CAD entities so I have many entities with common properties so, for all the general properties I have to write the property functions in each COM class which is just duplication of code so, I just wanted to create a template base class that will have the set of properties & using which I can make the code reusable. Structure of my component is as follows Document has Entites has Entity information Please suggest me what to do in this situation.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
-
Hi all, I got into the problem where I have to inherit a COM class/object with another COM class/object. Actually I am creating a component for for reading/writting CAD entities so I have many entities with common properties so, for all the general properties I have to write the property functions in each COM class which is just duplication of code so, I just wanted to create a template base class that will have the set of properties & using which I can make the code reusable. Structure of my component is as follows Document has Entites has Entity information Please suggest me what to do in this situation.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
Hi, Please let me know that you using COM class / simple class file & export the tlb file using RegAsm command...
Don't forget to click "Good Answer" on the post(s) that helped you. Thanks Md. Marufuzzaman
-
Hi all, I got into the problem where I have to inherit a COM class/object with another COM class/object. Actually I am creating a component for for reading/writting CAD entities so I have many entities with common properties so, for all the general properties I have to write the property functions in each COM class which is just duplication of code so, I just wanted to create a template base class that will have the set of properties & using which I can make the code reusable. Structure of my component is as follows Document has Entites has Entity information Please suggest me what to do in this situation.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job