Why does Managed DLL export so many unmanaged symbols?

R

Rob Burke

I'm trying to create a hybrid Managed/unmanaged C++ DLL that uses ATL
and wraps some of DirectShow.

When I add a reference to that Managed C++ DLL in another managed
project, I end up "polluting" my namespaces will all sorts of
unmanaged stuff I didn't want the DLL to export.

For instance, there is an ATL namespace that contains things like
CComPtr<IBaseFilter>. And in the root namespace, I am exporting
things like _AMMediaType and IUnknown and other unmanaged classes and
structs. It all shows up in the Object Browser and also in the
Autocomplete.

I wish I could say "don't export anything from this DLL except for the
Managed classes I've marked as externally public."

Can I do that?
 

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