This may be easy but i could not find how to fix it.
I have a vb .net dll which calls vb6 exe. In vb6, enum members can be called directly without using enumeration name.
But in vb .net, i need to use enum name to call members of it.
VB6 exe calls memebrs of enum directly without using enum name which fails when it comes to vb .net dll.
FYI, i cannot change code of vb6.
public enum test
undefined = 0
critical = 1
Call from vb6 exe:
i = class(critical)
this line directly calls critical and give 1 as value for i, when i used vb 6 dll as reference to vb6 exe
but when it comes to vb .net dll, the above condition fails saying "critical" variable not defined