sxthomson
sxthomson

Reputation: 563

Hide Delphi 7 COM commands from IDE's like Visual Studio?

Our company has a big bit of software that has a lot of really useful COM commands. We have a good solid basic set that allow you do essentially bypass the GUI and get the information you want, but we also have a few that have been added for specific customers.

Ideally, we'd want to "hide" these specific COM commands to the regular user when our .exe is imported into things like Visual Studio. So although they'd be active, in theory the only people who could use them are the people who have been explicitly told about them. This would negate a lot of the issues we have with customers using functionality that wasn't really designed to be used by them, and of course would mean not having to support multiple installers.

Upvotes: 0

Views: 167

Answers (1)

Uwe Raabe
Uwe Raabe

Reputation: 47704

You can split the type library into a standard and a special one. Whilst the special implementation is still available in the COM server, it can only be used by someone who knows the IIDs and the interface descriptions. If you make the special interfaces inherit from the standard ones, your special customers just have to get access to the special interfaces to get the full functionality.

Upvotes: 5

Related Questions