Enum not visible in COM

  • Thread starter Thread starter tshad
  • Start date Start date
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
 
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?
 
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
 
Back
Top