azwaan
Programmer
- Jan 11, 2002
- 42
Im involved in maintaining a already developed application of which a major
component is written in VC++. i have a requirement to add a global
enumeration to the component. so that it maybe exposed to the VB application
tht is using the DLL.
currently global enumerations have been defined in globalenums.h ( i have
also noticed that for each enumeration defined , there is also a entry in
the globlenums.idl) . however only some of the enumerations defined are
available in the VB side. i could not find any entries in the source files
that made it possible for some enumeration to be available in VB and for
some not to. ie.. both types of enumerations contains exectly the same kind
of entries in the source files.
coming back to my requiement , i need to add a new enumeration that will be
used in VB to the VC component. i have defined my enumeration by directly
editing the globalenums.h. however this did not achieve the desired result.
is there a way to add enumerations in the VC IDE thru menu options? how can
i expose this enumerations the way i want.
my sample code in globalenums.H is as follows
typedef /* [helpstring][v1_enum] */
enum StatusLevels
{
eStatusNone = 0,
eStatusInProgress = 1,
eStatusSuccess = 2,
eStatusFailed = 3
}
StatusLevels;
excuse but im pretty new to VC++.. this might really be a simple/stupid
question.
Thanx in advance
component is written in VC++. i have a requirement to add a global
enumeration to the component. so that it maybe exposed to the VB application
tht is using the DLL.
currently global enumerations have been defined in globalenums.h ( i have
also noticed that for each enumeration defined , there is also a entry in
the globlenums.idl) . however only some of the enumerations defined are
available in the VB side. i could not find any entries in the source files
that made it possible for some enumeration to be available in VB and for
some not to. ie.. both types of enumerations contains exectly the same kind
of entries in the source files.
coming back to my requiement , i need to add a new enumeration that will be
used in VB to the VC component. i have defined my enumeration by directly
editing the globalenums.h. however this did not achieve the desired result.
is there a way to add enumerations in the VC IDE thru menu options? how can
i expose this enumerations the way i want.
my sample code in globalenums.H is as follows
typedef /* [helpstring][v1_enum] */
enum StatusLevels
{
eStatusNone = 0,
eStatusInProgress = 1,
eStatusSuccess = 2,
eStatusFailed = 3
}
StatusLevels;
excuse but im pretty new to VC++.. this might really be a simple/stupid
question.
Thanx in advance