Hiding unmanaged classes in dual-mode component

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
 
W

William DePalo [MVP VC++]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top