Hi Guys,
Here is my suggestion and how I did it in VB :
1-Create a new Class Library project in VB
2-Delete the default class file
3-Add a new module
4-Here is code of module
Public Module Module1
Public Const MY_CONSTANT As String = "FDSFSD"
End Module
5-Compile the new project called constants2, which will give me a dll
(constants2.dll)
6-Create a new project called Test_constant
7-Add the constants2.dll in the bon directory of project Test_constant and
add reference to constants2.dll
9-And in page load of the starting page of Test_constant
Label1.Text = constants2.Module1.my_constant
And label shows "FDSFSD". So it seems to work.
I have not tried it but I beleive we can also put the dll in the GAC to
share it with all the applications.
"jeff" <i n d i a m e s s e n g e
r@yahoo.com> wrote in message
news:O3*************@TK2MSFTNGP12.phx.gbl...
Hi,
what is a good way to implement public common constants. like what we do
in a common header file in C++.
jeff