Please clarify my COM conceptual doubts.
-
HI, I have little knowledge in COM. But in my recent interview i faced these questions, and i couldnt answer. please clarify my doubts. 1.) If I crate 2 Components with same name then how do I call the desired component? Because Iam passing only Component name as parameter to CreateInstance Function? 2.) If I crate 2 Components with same name and iam going to register ,then what will happen ? 3.) If you need to add new functionality to your COM Component, then what do you do for that? Can you change existing COM component ? Do you need to register once again? Thanks, Krishna Rayalu
-
HI, I have little knowledge in COM. But in my recent interview i faced these questions, and i couldnt answer. please clarify my doubts. 1.) If I crate 2 Components with same name then how do I call the desired component? Because Iam passing only Component name as parameter to CreateInstance Function? 2.) If I crate 2 Components with same name and iam going to register ,then what will happen ? 3.) If you need to add new functionality to your COM Component, then what do you do for that? Can you change existing COM component ? Do you need to register once again? Thanks, Krishna Rayalu
A COM component is identified using a class Id called a CLSID and not its name. If you want to add new functionality to an existing COM component, you create a new interface. It is not necessary to register the component again because the CLSID doesn't change.
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
A COM component is identified using a class Id called a CLSID and not its name. If you want to add new functionality to an existing COM component, you create a new interface. It is not necessary to register the component again because the CLSID doesn't change.
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)Thank you so much for your Knowledge sharing. Regards, Rayalu.