Hiding unmanaged classes in dual-mode component

  • Thread starter Thread starter Phil Atkin
  • Start date Start date
P

Phil Atkin

Hi,

I'm currently wrapping my "legacy" COM component with a managed layer, to
create a dual-mode component. The structure is very like the JrnlPost
sample and the "Exploring COM Interoperability with ATL and Managed
Extensions for C++" walkthrough.

When I add a reference to my dual-mode component in a client application,
however, the Object Browser and other tools show me not only my managed
wrappers but pretty well everything else in the project (such as ATL
classes, other COM interfaces and so on).

Is there a way to 'hide' all this stuff, or (better) to specify that _only _
certain classes should be visible in the assembly?

Thanks

Phil Atkin
 
Phil Atkin said:
When I add a reference to my dual-mode component in a client application,
however, the Object Browser and other tools show me not only my managed
wrappers but pretty well everything else in the project (such as ATL
classes, other COM interfaces and so on).

Is there a way to 'hide' all this stuff, or (better) to specify that _only
_
certain classes should be visible in the assembly?

Take a look at this link to see if it helps:

http://support.microsoft.com/default.aspx?scid=kb;en-us;822330

If there remain visible things that you want to hide after relinking with
the switch then post again.

Regards,
Will
 
Back
Top