none
Register for COM interop & enumeration types RRS feed

  • Question

  • First, the background: we have a VB6 dll used by a managed C++ front end.

    The VB6 dll has now been converted to VB.Net with option 'Register for COM Interop' set.

    The problem: all enumeration values in the resulting .tlh file have had the enumeration type name prepended - i.e.

    Public Enum StagedInitEnum
        siReadDB = 0
    End Enum

    has become

    StagedInitEnum
    {
        StagedInitEnum_siReadDB = 0
    };

    when it used to be (with VB6)

    StagedInitEnum
    {
        siReadDB = 0
    };

    which means that all the C++ code will have to change to use the new enum values - which is a real pain.

    Is there an option to turn this prefixing off?
    Wednesday, March 19, 2008 9:31 AM

Answers

  • No, there's no such option.

     

    Can't you keep using the old typelib from the VB6 library?

     

     

    Wednesday, March 19, 2008 9:33 AM
    Moderator