I am creating a COM server using C++ Builder XE. Its ProgID is always ‘PROGRAMNAME.CLASSNAME’.
How do I change the ProgID? I want to use ‘COMPANYNAME.PROGRAMNAME.FUNCTIONALITY’.
A Delphi answer would probably suffice.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Override the GetProgID method of the factory. Something along the lines of the following should do:
Then have the createFactory() of the COM Server use the derived factory.
Cheers,
Bruneau