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 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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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(){
|
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)
{
|
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,...
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
|
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...
| |