Enum not visible in COM

T

tshad

Type library exporter warning processing 'LevelOfEfforSkipStep(#0),
CodeClientCOM'. Warning: Non COM visible
value type 'LevelOfEffortSkipStep' is being referenced either from the type
currently being exported or from one of its base types.

Not sure what this means, but I am trying to set up an enum to be referenced
via a COM+ component from a VB6 app.

I can get my normal apps to work fine, and this application builds fine

The enum is in another class that this references.

In my code I have:

public Geo.LevelOfEffortSkipStep LevelOfEfforSkipStep
{
get { return menumLevelOfEffortSkipStep;}
set { menumLevelOfEffortSkipStep = value; }
}

Where LevelOfEffortSkipStep is an enum in the Geo class?

Is there a way to make this work?

Thanks,

Tom
 
J

Jeroen Mostert

tshad said:
Type library exporter warning processing 'LevelOfEfforSkipStep(#0),
CodeClientCOM'. Warning: Non COM visible
value type 'LevelOfEffortSkipStep' is being referenced either from the type
currently being exported or from one of its base types.
Is this type included in an assembly that is not marked as COM visible, by
any chance?
 
T

tshad

Jeroen Mostert said:
Is this type included in an assembly that is not marked as COM visible, by
any chance?

Where would this be?

In the VB6 project or the .Net COM code?

The COM works fine except for this. I finally fixed the problem by setting
each ENUM entry as a property that they set and then in the COM object I use
these properties instead of the ENUM.

Thanks,

Tom
 

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