G
Guest
Hi,
I have built a VB.NET, VS 2005 class library that is exposed to VB6/COM
clients. Everything works as expected except for the fact that Constants
(Const) are NOT being exported to the VB6/COM type library; they are not
visible. I have tried every trick in the book to force .NET constants to be
available to VB6/COM, but to no avail. Enumerators appear correctly, but I
need String (Public Const Test As String = "MyString") type constants as
opposed to the numeric (Integer) type Enumerator members (Test = 5); I have
no choice, I cannot use Enumerators as they only store numeric values.
Is there any way to accomplish this. I basically want to avoid the
VB6/COM developer from having to guess which constant value to use; or if
there were to be a modification, that it would be available immediately.
Can anyone please help?
Regards,
Giovanni
I have built a VB.NET, VS 2005 class library that is exposed to VB6/COM
clients. Everything works as expected except for the fact that Constants
(Const) are NOT being exported to the VB6/COM type library; they are not
visible. I have tried every trick in the book to force .NET constants to be
available to VB6/COM, but to no avail. Enumerators appear correctly, but I
need String (Public Const Test As String = "MyString") type constants as
opposed to the numeric (Integer) type Enumerator members (Test = 5); I have
no choice, I cannot use Enumerators as they only store numeric values.
Is there any way to accomplish this. I basically want to avoid the
VB6/COM developer from having to guess which constant value to use; or if
there were to be a modification, that it would be available immediately.
Can anyone please help?
Regards,
Giovanni