471,336 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Exposing Enumeration To COM: How to control Prefix added to the name of elements ?

Hi,

When I expose a enum to COM, the name of the enumeration is automatically
added in prefix to the names of the elements of the exposed enumeration.
Sample:
[ComVisible(true)]
[GuidAttribute("xxxx")]
public enum EnumerationName
{
[DispId(0)]
Element1,
[DispId(1)]
Element2,
....

Expose:
Enumeration named: EnumerationName
Element1 named : EnumerationName_Element1
Element2 named : EnumerationName_Element2 ...

I want to have control on the prefix added to the Elements Names.

How can I do it ???

Thank's for your help
Jun 27 '08 #1
0 899

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by JamesSmithMz | last post: by
7 posts views Thread by Nathan | last post: by
4 posts views Thread by =?Utf-8?B?QkogU2FmZGll?= | last post: by
reply views Thread by rosydwin | last post: by

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.