473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Hiding objects in MC++

Hi,

I have a mixed dll which exposes some managed classes
which themselves *internally* make use of some
standard c++ library templates (like string and exception).

The problem I'm having is that when I reference the dll
in my VB.NET project, it seems to have brought along
these templates and exposed them in the VB.NET project.

This is leading to all sorts of naming collisions,
especially between the standard c++ library exception
class and the System.Exception class. I am now forced
to fully qualify each instance of System.Exception,
even though I have the statement

Imports System

at the top of my vb source file.

Is there a way I can prevent these templates from
being exposed showing up in Object browser so that
they don't cause these collisions? Or is there another
way I can handle this situation?

TIA,

--
Akin

aknak at aksoto dot idps dot co dot uk
Nov 17 '05 #1
3 858
Hi Akin,

Take a look at the following link which describes the issue and solution:
http://support.microsoft.com/default...b;en-us;822330

Ronald Laeremans
Visual C++ team

"Wild Wind" <no****@blackhole.com> wrote in message
news:2r*************@uni-berlin.de...
Hi,

I have a mixed dll which exposes some managed classes
which themselves *internally* make use of some
standard c++ library templates (like string and exception).

The problem I'm having is that when I reference the dll
in my VB.NET project, it seems to have brought along
these templates and exposed them in the VB.NET project.

This is leading to all sorts of naming collisions,
especially between the standard c++ library exception
class and the System.Exception class. I am now forced
to fully qualify each instance of System.Exception,
even though I have the statement

Imports System

at the top of my vb source file.

Is there a way I can prevent these templates from
being exposed showing up in Object browser so that
they don't cause these collisions? Or is there another
way I can handle this situation?

TIA,

--
Akin

aknak at aksoto dot idps dot co dot uk

Nov 17 '05 #2
Hi Ronald,

Thanks for the info - that seems to have worked.

Cheers,

Akin

Ronald Laeremans [MSFT] wrote:
Hi Akin,

Take a look at the following link which describes the issue and
solution:
http://support.microsoft.com/default...b;en-us;822330

Ronald Laeremans
Visual C++ team

"Wild Wind" <no****@blackhole.com> wrote in message
news:2r*************@uni-berlin.de...
Hi,

I have a mixed dll which exposes some managed classes
which themselves *internally* make use of some
standard c++ library templates (like string and exception).

The problem I'm having is that when I reference the dll
in my VB.NET project, it seems to have brought along
these templates and exposed them in the VB.NET project.

This is leading to all sorts of naming collisions,
especially between the standard c++ library exception
class and the System.Exception class. I am now forced
to fully qualify each instance of System.Exception,
even though I have the statement

Imports System

at the top of my vb source file.

Is there a way I can prevent these templates from
being exposed showing up in Object browser so that
they don't cause these collisions? Or is there another
way I can handle this situation?

TIA,

--
Akin

aknak at aksoto dot idps dot co dot uk


Nov 17 '05 #3
Note that we have a more fundamental solution in Whidbey by allowing the
"private" (also the default) and the "public" keywords on non-CLR types like
classes and structs so you have granular control over what you want to
expose.

Thanks!

Ronald

"Wild Wind" <no****@blackhole.com> wrote in message
news:2r*************@uni-berlin.de...
Hi Ronald,

Thanks for the info - that seems to have worked.

Cheers,

Akin

Ronald Laeremans [MSFT] wrote:
Hi Akin,

Take a look at the following link which describes the issue and
solution:
http://support.microsoft.com/default...b;en-us;822330

Ronald Laeremans
Visual C++ team

"Wild Wind" <no****@blackhole.com> wrote in message
news:2r*************@uni-berlin.de...
Hi,

I have a mixed dll which exposes some managed classes
which themselves *internally* make use of some
standard c++ library templates (like string and exception).

The problem I'm having is that when I reference the dll
in my VB.NET project, it seems to have brought along
these templates and exposed them in the VB.NET project.

This is leading to all sorts of naming collisions,
especially between the standard c++ library exception
class and the System.Exception class. I am now forced
to fully qualify each instance of System.Exception,
even though I have the statement

Imports System

at the top of my vb source file.

Is there a way I can prevent these templates from
being exposed showing up in Object browser so that
they don't cause these collisions? Or is there another
way I can handle this situation?

TIA,

--
Akin

aknak at aksoto dot idps dot co dot uk


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Alfonso Morra | last post by:
I have written the following code, to test the concept of storing objects in a vector. I encounter two run time errors: 1). myClass gets destructed when pushed onto the vector 2). Prog throws a...
12
by: Alfonso Morra | last post by:
I have the ff code for testing the concept of storing objects: #include <vector> #include <iostream> using namespace std ; class MyClass { public: MyClass(){
1
by: Cody Manix | last post by:
iam trying to program a copy constructor that is able to create a bitwise copy of its argument: MyClass { int a; // lots of different fields goes here float x; MyClass (MyClass my) {
6
by: harrylmh | last post by:
Hi, I'm learning C# and I just don't quite understand the need for polymorphism. why do we need to use it? how does a base class variable holding a derived class instance do any good? Also,...
1
by: Daniel Lidström | last post by:
Hi, I've got a DLL compiled with managed extensions. Now I wish to access objects created in this DLL from another DLL compiled without extensions. How is that possible? I do not want to...
1
by: Eyal | last post by:
Hi, We have a class written in MC++ that has a data member of a class written in C#. When the MC++ goes out of scope, it's destructor is properly called and it's memory is released. However, the...
5
by: janzon | last post by:
Hi! I'm a Java guy, forced to do some C++. I want to add objects to the set container. I don't even get past the compilation step (which is a good thing in a way). For instance, why doesn't the...
11
by: Aflj | last post by:
This code won't compile (two compilers tried, gcc and VC++, both of recent versions, but I don't remember them exactly): class C1 { public: void M1(int i) {} }; class C2: public C1
2
by: subramanian100in | last post by:
Is my following understanding correct ? Data abstraction means providing the interface - that is, the set of functions that can be called by the user of a class. Information hiding means...
162
by: Sh4wn | last post by:
Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.