473,498 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to prevent MFC classes' metadata to be exported by MC++ assembly ?

Hi,
I have MC++ mixed mode assembly, which also uses MFC. Everything works fine,
but C# code, which uses this MC++ assembly sees all MFC symbols as members
of the global namespace. When I open MC++ assembly I actually see all
metadata of those classes. Obviously, in most cases classes have no members,
but I see class names like CArchive etc.
I didn't get this behaviour on VS.NET 2002.
I tried to play with compiling MFC as unmanaged, or in the namespace MFC,
but I get many compilation errors in those cases - and based on error
messages I can conclude it isn't bright idea.
Any help ?

--
==============================
Alexander Arlievsky
sa***@mprest.com
"The best tools for debugging are brains"
==============================
Nov 16 '05 #1
1 1370
Take a look at the following article:
http://support.microsoft.com/default...b;EN-US;822330

Ronald Laeremans
Visual C++ team

"Alexander Arlievsky" <al**@mprest.com> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
Hi,
I have MC++ mixed mode assembly, which also uses MFC. Everything works fine, but C# code, which uses this MC++ assembly sees all MFC symbols as members
of the global namespace. When I open MC++ assembly I actually see all
metadata of those classes. Obviously, in most cases classes have no members, but I see class names like CArchive etc.
I didn't get this behaviour on VS.NET 2002.
I tried to play with compiling MFC as unmanaged, or in the namespace MFC,
but I get many compilation errors in those cases - and based on error
messages I can conclude it isn't bright idea.
Any help ?

--
==============================
Alexander Arlievsky
sa***@mprest.com
"The best tools for debugging are brains"
==============================

Nov 16 '05 #2

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

Similar topics

1
741
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a...
18
2016
by: Edward Diener | last post by:
Is the packing alignment of __nogc classes stored as part of the assembly ? I think it must as the compiler, when referencing the assembly, could not know how the original data is packed otherwise....
3
4174
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a...
1
275
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7205
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...
1
6887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4910
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...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1419
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
291
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.